简体   繁体   English

情节提要vs iOS模拟器所见即所得

[英]Storyboard vs. iOS Simulator WYSIWYG

This is my problem: 这是我的问题:

图片

        Left side: iOS Simulator      Right side: Storyboard / Interface Builder

Any ideas? 有任何想法吗? Thanks 谢谢

... UI Elements placed in IB appears shifted up in Simulator ... 放置在IB中的UI元素在模拟器中似乎上移了

Maybe a better solution than this ... I have two xibs with the exact same look, one is shifted up, the other one works fine. 也许比这更好的解决方案...我有两个外观完全相同的xib,一个向上移动,另一个很好。

OK, however. 好的,但是。 My workaround is to change the view hierarchy and set the UIImageView behind the UINavigationItem. 我的解决方法是更改​​视图层次结构,并将UIImageView设置在UINavigationItem的后面。 Seems to work. 似乎可以工作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM