开发者

Interface Builder not Sizing Correctly

开发者 https://www.devze.com 2023-03-18 07:08 出处:网络
I am relatively new to iOS programming, and I am struggling with interface builder. Apparently, this IB thing is supposed to be easy, but when I build things, the开发者_如何学Cy don\'t match up in the

I am relatively new to iOS programming, and I am struggling with interface builder. Apparently, this IB thing is supposed to be easy, but when I build things, the开发者_如何学Cy don't match up in the app. Can anyone help me out(thanks in advance)?

Iterface Builder:

Interface Builder not Sizing Correctly

and in the simulator:

Interface Builder not Sizing Correctly


Under "Simulated Metrics" in the Attributes Inspector, change the "Status Bar" dropdown to "Translucent Black" (in this case). Your IB view should match what you're seeing in the simulator after that.


It turns out that I had to add the whole view hierarchy to a window to make it work. Now my view hierarchy looks like this:

Interface Builder not Sizing Correctly

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号