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.
精彩评论