开发者

UITabBarController hides but white space remaining

I have UITabBarController in my app. In a particular view I want to hide the tabbar and display the content up to the below line.

For that I used the code in the view

-(void)view开发者_如何学编程Willappear{

   [self.tabBarController.tabBar setHidden:YES];

}


It depends what your content is, but if it's inside a container, like a UIView, you can change the autoResizingMask to be

myView.autoresizingMask = UIViewAutoresizingFlexibleHeight;

and it should do the right thing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜