How to apply top offset for status bar in iOS7 for UITabBarController children only

后端 未结 2 1810
醉话见心
醉话见心 2021-01-18 05:27

My app is a UITabBarController based app with 3 children vc. The status bar is overlapping with my viewcontrollers. I have tried everything I have found in SO:

    <
2条回答
  •  一整个雨季
    2021-01-18 06:14

    for iOS 7 and xcode 5 to avoid overlapping

    use in

    viewDidLoad method

    self.edgesForExtendedLayout = UIRectEdgeNone;
    self.automaticallyAdjustsScrollViewInsets = NO;
    

提交回复
热议问题