简体   繁体   English

Interface Builder:有没有办法显示屏幕键盘?

[英]Interface Builder: Is there a way to show the on-screen keyboard?

I want to check that my iPhone interfaces designed in Interface Builder look ok when the on-screen keyboard is shown. 我想检查界面生成器中设计的iPhone界面在显示屏幕键盘时是否正常。 I know how to set the 'simulated user interface elements' such as the top and bottom tab bars on or off. 我知道如何设置“模拟用户界面元素”,例如打开或关闭顶部和底部标签栏。

Is there anything similar for the on-screen keyboard? 屏幕键盘有什么类似的东西吗?

Thanks! 谢谢!

You could start with a Horizontal Guide (Editor > Add Horizontal Guide) 216 px from the botton. 您可以从按钮开始使用水平向导(编辑器>添加水平向导)216 px。 That's exactly how high the keyboard is. 这正是键盘的高度。

I am not certain but I believe the answer is no. 我不确定,但我相信答案是否定的。 You cab however, "Simulate Interface" and run the XIB file in the simulator, which should accomplish what you want. 然而,您可以驾驶“Simulate Interface”并在模拟器中运行XIB文件,这应该可以实现您想要的效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 jqMobi:打开屏幕键盘时,屏幕将调整大小 - jqMobi: screen resizes when on-screen keyboard opens 模式视图,横向模式下屏幕键盘顶部的白色条 - modal view, white bar on top of on-screen keyboard in landscape mode 如果用户点击屏幕键盘,我该如何关闭键盘? - How can I dismiss the keyboard if a user taps off the on-screen keyboard? 如何仅在Interface Builder中使用键盘移动控件 - How to move control with keyboard only in Interface Builder 什么是用于旋转窗口的Interface Builder键盘快捷键? - What is the Interface Builder keyboard shortcut to rotate a window? UIView始终在模拟器中显示全屏,尽管由Interface Builder将宽度和高度设置为320 x 320 px - UIView alway show full screen in simulator although setting width and height to 320 x 320 px by Interface Builder UIScrollView的屏幕尺寸 - On-screen dimensions of a UIScrollView UIViewController占据了Interface Builder中的整个屏幕 - UIViewController takes up entire screen in Interface Builder Interface Builder和实际设备屏幕中的布局差异 - Layout differencies in Interface Builder and real device screen 在屏幕顶部显示文本字段的键盘 - show the keyboard of a textfield on top of the screen
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM