Chatar Veer Suthar
Chatar Veer Suthar

Reputation: 15639

how to add UITabBar in ViewBased application?

I want to make UITabBar, (not UITabBarController) in my viewDidLoad of ViewController.

Upvotes: 1

Views: 874

Answers (1)

Swapnil Luktuke
Swapnil Luktuke

Reputation: 10475

You want to 'make' UITabBar in your viewDidLoad?? I am going to assume that you want to use a UITabBar without the tab bar controller...

just create an object of UITabBar, set your controller as it's delegate, add it as a subview to your controller's view, implement the tab bar delegate methods.. and you are doen.. of course you'll have to specify how many tabs it should have, their titles, images etc just like you do with a tab bar controller...

Upvotes: 3

Related Questions