相关疑难解决方法(0)

UIAlertView:UIAlertViewStyleSecureTextInput:数字键盘

我目前正在使用这个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

uialertview ios

16
推荐指数
1
解决办法
1万
查看次数

标签 统计

ios ×1

uialertview ×1