UIAlertView带textField

UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"校验登录密码" message:@"" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];

    alert.alertViewStyle = UIAlertViewStyleSecureTextInput;

    alert.tag = 33;

    UITextField *t = [alert textFieldAtIndex:0];

    t.placeholder = @"请输入登录密码";

[alert show];

posted @ 2015-10-10 17:40  上官元空  阅读(202)  评论(0编辑  收藏  举报