开发者

How to customize the size of a UITabBarController?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜