[英]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.