如何在popover中呈现键盘?,ipad密码锁定风格 [英] How to present keyboard inside popover?, ipad passcode lock style

查看:124
本文介绍了如何在popover中呈现键盘?,ipad密码锁定风格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您为ipad设置密码时,是否可以显示键盘的方式?

Is it posible to present a keyboard the way is shown when you set a passcode for your ipad?

推荐答案

不幸的是没有,但我复制的是,使用界面构建器在我的密码视图中构建了一堆键盘,如键盘。然后将每个按钮链接到将更改文本字段的命令。

Unfortunately no, But what i did to replicate this was, built a bunch of buttons like a keyboard inside my passcode view using interface builder. Then linked each button to a command that would change the text field.

- (IBAction) button9_clicked:(id) sender{

    if ([self textField:theTextField shouldChangeCharactersInRange:range replacementString:@"9"]){
        self.theTextField.text=[self.theTextField.text stringByAppendingString:@"9"];
        range.location = self.theTextField.text.length;
    }
    else 
        range.location = self.theTextField.text.length;
}

这篇关于如何在popover中呈现键盘?,ipad密码锁定风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆