In Storyboard I have option to put viewController content under top bar! How can I do that programmatically?
What I want(I think) is self.edgesForExtendedLayout = UIRectEdge.Top
but doesn't work...
In Storyboard I have option to put viewController content under top bar! How can I do that programmatically?
What I want(I think) is self.edgesForExtendedLayout = UIRectEdge.Top
but doesn't work...
Put this code in your viewController's viewDidLoad()
method:
edgesForExtendedLayout = [.top]
If you mean navigationBar, use yourNavigationBar.translucent = YES;