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;
controller.edgesForExtendedLayout = [.top]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With