OC_UIAlertView添加UITextField
作者:
KermitX | 来源:发表于
2016-05-16 18:10 被阅读661次

效果图
UIAlertView * alertView = [[UIAlertView alloc] initWithTitle:@"请输入对方付款码"
message:nil delegate:self
cancelButtonTitle:@"取消"
otherButtonTitles:@"收款", nil];
/*
UIAlertViewStyle
UIAlertViewStyleDefault = 0,
UIAlertViewStyleSecureTextInput,
UIAlertViewStylePlainTextInput,
UIAlertViewStyleLoginAndPasswordInput
*/
[alertView setAlertViewStyle:UIAlertViewStylePlainTextInput];
_textField = [alertView textFieldAtIndex:0];
_textField.placeholder = @"18位付款码 在条形码下方";
_textField.keyboardType = UIKeyboardTypeNumberPad;
[alertView show];
本文标题:OC_UIAlertView添加UITextField
本文链接:https://www.haomeiwen.com/subject/kmbbrttx.html
网友评论