横向导航栏的模拟指标不准确
带有导航栏的视图的模拟指标似乎是基于纵向模式导航栏的尺寸。当应用程序编译并运行时,横向导航栏实际上比纵向模式下更细(高度更低)。
除了以编程方式添加导航栏,同时在 XIB 中放置一个细长的占位符导航栏,同时放弃模拟指标之外,还有什么干净的方法可以解决此问题吗?这将是一种耻辱,因为我喜欢使用模拟指标。
It seems that the simulated metrics for a view with a navigation bar are based on the dimensions of the portrait mode navigation bar. When the app is compiled and run, landscape navigation bars are actually slimmer (less high) than they are in portrait mode.
Is there any clean way to fix this other than to programmatically add my navigation bar while putting a slim placeholder nav bar in my XIB, while forgoing simulated metrics? That would be a shame because I like using simulated metrics.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论