iOS - How to reclaim the top 20px in storyboard w/ translucent black status bar

ios, storyboard, user-interface, view, xcode

Solution

Here's solution without single line of code.

- In Interface Builder set up the view controller as wanting full screen and of freeform size.

- In the view's size settings set its height to 480px

- Ensure status bar style is translucent black in the Info.plist.

- Launch and observe

See the links for screenshots of each step in the top post.

Problem

I have a problem with top 20px behind status bar, specifically I cannot put anything there. When I created the UI I used the storyboard approach and set status bar style to translucent black. But when do the layout in Xcode my views' height is fixed to 460px (grayed out). Please help. Got an answer from a friend, will mark his solution as right answer as soon as he posts it here. For now here is the solution: - In Interface Builder set up the view controller as wanting full screen and of freeform size: http://cl.ly/0x1p1u3q3B1y3b3C3U2n - Then in the view's size settings set its height to 480px: http://cl.ly/1p1b0e060p1Y37393D08 - Ensure status bar style is translucent black in the Info.plist: http://cl.ly/153Y391S1b0G3J3z3Y1O - Get satisfactory result: http://cl.ly/0Q1M390i3A3h2F3u2T19

Original source

Related problems