如何像iPad锁屏一样显示数字输入模式视图?

发布于 2024-10-09 06:38:21 字数 136 浏览 0 评论 0原文

当我解锁 iPad 时,我会看到一个小的模态视图,我可以在其中输入 PIN 码。我想在我的应用程序中使用相同的功能来通过 PIN 码保护敏感设置。

这里使用了哪个 UI 元素?我怎样才能把它点燃?

谢谢。

勒内

when I unlock my iPad I get a small modal view where I can enter a PIN. I'd like to use the same thing within my app to protect a sensitive setting with a PIN.

Which UI element is used here? How can I fire it up?

Thanks.

René

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜血缘 2024-10-16 06:38:21

嗯,我不认为默认情况下可以使用它,但是您可以构建自己的键盘,您可以使用以下代码来获取数字键盘

UITextField tf;
                        tf.KeyboardType = UIKeyboardType.NumberPad;

,或者您可以使用界面生成器创建自定义键盘,您只需要 12 个按钮和 4 个文本框然后以编程方式完成它非常简单希望这对

亚历克斯有帮助

Umm i dont think that view it available to use use by default, but you can build your own you can use the following code to get the numeric pad

UITextField tf;
                        tf.KeyboardType = UIKeyboardType.NumberPad;

or you can create a custom keyboard with interface builder you just need 12 buttons ans 4 text boxes then do it programmatically pretty straightforward hope this helps

Alex

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文