模态视图,横向模式下屏幕键盘顶部的白色条
基于导航的应用程序,启动了一个模态视图,代码如下:
[self presentModalViewController:bookmarkAddViewController animated:YES];
[bookmarkAddViewController release];
在纵向模式下,键盘抬起,没问题;但在横向模式下,凸起键盘顶部有一个白色条。为什么会发生这种情况,以及如何解决?!
PS:由于积分不足,无法附上图片。叹息......为什么让事情变得如此困难,而其全部目的是试图帮助人们。
Navigation based app, launched a modalview with code like:
[self presentModalViewController:bookmarkAddViewController animated:YES];
[bookmarkAddViewController release];
In portrait mode, keyboard raised, no problem; but in landscape mode, there is a white bar on top of raised keyboard. Why this happen, and how to fix it?!
PS: not able to attach image due to lack of points. sigh... why SO making things so difficult while its whole purpose is trying to help people.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的自动调整大小蒙版可能未正确设置。在笔尖仔细检查这一点。选择 bookmarkAddViewController 的主视图并单击标尺。确保调整大小蒙版位设置正确(全部打开)。
这可能不是问题,但值得一试。
It is possible that your autoresize mask is not set properly. Double check this in the nib. Select the main view for bookmarkAddViewController and click on the ruler. Make sure the resize masks bits are set correctly (all on).
That might not be the problem, but worth a shot.