Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can achieve this by implementing a new property called <code>edgesForExtendedLayout</code> in iOS7 SDK. Please add the following code to achieve this,</p> <pre><code>if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) self.edgesForExtendedLayout = UIRectEdgeNone; </code></pre> <p>You need to add the above in your <code>-(void)viewDidLoad</code> method.</p> <blockquote> <p>iOS 7 brings several changes to how you layout and customize the appearance of your <em>UI</em>. The changes in view-controller layout, tint color, and font affect all the <em>UIKit</em> objects in your app. In addition, enhancements to gesture recognizer APIs give you finer grained control over gesture interactions. </p> <p><strong>Using View Controllers</strong></p> <p>In iOS 7, view controllers use full-screen layout. At the same time, iOS 7 gives you more granular control over the way a view controller lays out its views. In particular, the concept of full-screen layout has been refined to let a view controller specify the layout of each edge of its view.</p> <p>The <code>wantsFullScreenLayout</code> view controller property is deprecated in iOS 7. If you currently specify <code>wantsFullScreenLayout = NO</code>, the view controller may display its content at an unexpected screen location when it runs in iOS 7.</p> <p>To adjust how a view controller lays out its views, <code>UIViewController</code> provides the following properties:</p> <ul> <li><strong>edgesForExtendedLayout</strong></li> </ul> <p>The <code>edgesForExtendedLayout</code> property uses the <code>UIRectEdge</code> type, which specifies each of a rectangle’s four edges, in addition to specifying none and all. Use <code>edgesForExtendedLayout</code> to specify which edges of a view should be extended, regardless of bar translucency. By default, the value of this property is <code>UIRectEdgeAll</code>.</p> <ul> <li><strong>extendedLayoutIncludesOpaqueBars</strong></li> </ul> <p>If your design uses opaque bars, refine <code>edgesForExtendedLayout</code> by also setting the <code>extendedLayoutIncludesOpaqueBars</code> property to <strong>NO</strong>. (The default value of <code>extendedLayoutIncludesOpaqueBars</code> is <strong>NO</strong>.)</p> <ul> <li><strong>automaticallyAdjustsScrollViewInsets</strong></li> </ul> <p>If you don’t want a scroll view’s content insets to be automatically adjusted, set <code>automaticallyAdjustsScrollViewInsets</code> to <strong>NO</strong>. (The default value of <code>automaticallyAdjustsScrollViewInsets</code> is <strong>YES</strong>.)</p> <ul> <li><strong>topLayoutGuide, bottomLayoutGuide</strong></li> </ul> <p>The <code>topLayoutGuide</code> and <code>bottomLayoutGuide</code> properties indicate the location of the top or bottom bar edges in a view controller’s view. If bars should overlap the top or bottom of a view, you can use Interface Builder to position the view relative to the bar by creating constraints to the bottom of <code>topLayoutGuide</code> or to the top of bottomLayoutGuide. (If no bars should overlap the view, the bottom of <code>topLayoutGuide</code> is the same as the top of the view and the top of <code>bottomLayoutGuide</code> is the same as the bottom of the view.) Both properties are lazily created when requested.</p> </blockquote> <p>Please refer, <a href="https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/TransitionGuide/AppearanceCustomization.html#//apple_ref/doc/uid/TP40013174-CH15-SW1" rel="noreferrer">apple doc</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload