浏览代码

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

Felix Paul Kühne 11 年之前
父节点
当前提交
4e3caeddf5
共有 1 个文件被更改,包括 1 次插入0 次删除
  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];
 }