UIAlertView 带输入框,且输入框中预先填入字符

来源:互联网 发布:mysql 默认约束 编辑:程序博客网 时间:2024/06/09 23:48
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"rename",nil) message:nil delegate:self cancelButtonTitle:NSLocalizedString(@"Cancel",nil) otherButtonTitles:NSLocalizedString(@"OK",nil), nil];    alert.tag = 1201;    alert.alertViewStyle = UIAlertViewStylePlainTextInput;    UITextField *tf = [alert textFieldAtIndex:0];    tf.text = [[switchList objectAtIndex:lpIndex] name];    [alert show];

原创粉丝点击