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:
and in the simulator:
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:
精彩评论