Sfoglia il codice sorgente

library: add clear button within the renaming dialog (close #10601)

Felix Paul Kühne 11 anni fa
parent
commit
4e3caeddf5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Sources/VLCPlaylistViewController.m

+ 1 - 0
Sources/VLCPlaylistViewController.m

@@ -697,6 +697,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
     UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@"RENAME_MEDIA_TO", @""), itemName] message:nil delegate:self cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", @"") otherButtonTitles:NSLocalizedString(@"BUTTON_RENAME", @""), nil];
     [alert setAlertViewStyle:UIAlertViewStylePlainTextInput];
     [[alert textFieldAtIndex:0] setText:itemName];
+    [[alert textFieldAtIndex:0] setClearButtonMode:UITextFieldViewModeAlways];
     [alert show];
 }