开发者

How to customize the size of a UITabBarController?

开发者 https://www.devze.com 2023-03-23 19:02 出处:网络
Is there any way to force a UITabBarController to 开发者_开发技巧be a size less than the full Window size on an iPhone? I noticed if I change its frame size & origin that works until it seems to r

Is there any way to force a UITabBarController to 开发者_开发技巧be a size less than the full Window size on an iPhone? I noticed if I change its frame size & origin that works until it seems to resize itself.


You are better off by creating a customTabBarController and setting

 -(UITabBar *) tabBar { 
return nil; 
} 

And thereupon add your custom TabBar in viewDidLoad of customTabBarController. Here you could have the frame, background color, autoresize of your choice.

0

精彩评论

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