I have UITabbarController with UINavigationController in it. I have a subclass of UIView that I assign as the view of
UITabbarController
UINavigationController
UIView
view
Objective-C:
- (void)viewDidLoad { [super viewDidLoad]; self.edgesForExtendedLayout = UIRectEdgeNone; }
Swift 2:
self.edgesForExtendedLayout = UIRectEdge.None
Swift 3+:
self.edgesForExtendedLayout = []