Explorar o código

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

Felix Paul Kühne %!s(int64=11) %!d(string=hai) anos
pai
achega
4e3caeddf5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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];
 }