Browse Source

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

Felix Paul Kühne 11 years ago
parent
commit
4e3caeddf5
1 changed files with 1 additions and 0 deletions
  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];
 }