我目前正在使用这个UIAlertView进行登录弹出,
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Restricted"
message:@"Please Enter Code to Enable Fields"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Login"
, nil];
alert.alertViewStyle = UIAlertViewStyleSecureTextInput;
[alert show];
Run Code Online (Sandbox Code Playgroud)
但是,我希望文本输入是数字键盘而不是常规键盘
有没有一种简单的方法可以做到这一点,或者我是否需要研究创建自定义UIAleartView