开发者

UITabBarController hides but white space remaining

开发者 https://www.devze.com 2023-03-28 23:24 出处:网络
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.

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

精彩评论

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