Three20:TTTableViewController、UITabBar 和 autoresizesForKeyboard 创建间隙
当我有一个带有 TTTableViewController 的 UITabBar 且 autoresizesForKeyboard 设置为 YES 时,键盘上方的选项卡栏(可能)的高度存在间隙。
如何解决这个问题?
When I have a UITabBar with a TTTableViewController and a autoresizesForKeyboard set to YES, there's a gap in the height of the Tab Bar (probably) above the keyboard.
How could this be fixed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚遇到了同样的问题并找到了解决方案。如果您使用模态视图,您可以调用 self.hidesBottomBarWhenPushed = YES;而且您不会看到任何差异,因为它无论如何都覆盖了选项卡栏,但是当键盘出现时,间隙就消失了:)
I just ran into the same problem and found a solution. If you're using a modal view you can call self.hidesBottomBarWhenPushed = YES; and you won't see any difference as it's covering up the tab bar anyway but when the keyboard appears the gap is gone :)
有一个拉取请求可以解决此问题:
https://github.com/facebook/third20/pull/486
我用过应用程序中的修复,它非常适合我。
There's a pull request that fixes this issue:
https://github.com/facebook/three20/pull/486
I've used the fix in an app and it works perfectly for me.