标签: ios select uitextfield uialertview
我想自动选择我添加到UIAlertView的文字。我认为这会奏效,但它没有:
UIAlertView
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:...]; alert.alertViewStyle = UIAlertViewStylePlainTextInput; UITextField *tf = [alert textFieldAtIndex:0]; tf.text = @"Some text"; [tf selectAll:nil];