dchappelle
dchappelle

Reputation: 1710

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.

Upvotes: 1

Views: 178

Answers (1)

the.evangelist
the.evangelist

Reputation: 488

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.

Upvotes: 1

Related Questions