iOS Hiding tab bar in iOS 6 creates black bar (fix for iOS 6 breaks iOS 7!)

后端 未结 4 1987
南方客
南方客 2020-12-28 11:15

I\'ve got a tabbed application and in one tab there is a UIWebView. When I rotate the device to landscape I\'ve made the UIWebView full screen whil

4条回答
  •  孤独总比滥情好
    2020-12-28 11:57

    I've created a a public Gist on Github for how we're doing this.

    This solution has gone through several iterations due to @Chris Byatt and our team trying it out. So, make sure you download the latest revision from there.

    The method signature has been simplified to

    - (void)setTabBarHidden:(BOOL)hidden animated:(BOOL)animated;
    

    You can call it like this within your UIViewController subclass:

    [self.tabBarController setTabBarHidden:YES animated:YES];
    

提交回复
热议问题