iphone - How to change number of tabs in tabbar controller application? -


I am developing an iPhone tabbar application with 5 tabs.

I just launch two tabs like "Find me"

When a user searches for me, the tab will be shown on the second tab and the current location can be used.

I want to do some things like "urban teaspoon".

I am using the interface builder for all the accessories.

If anyone has any ideas, suggestions, links, please provide me.

Thank you.

  // Create array that contains your existing view controllers NSMutableArray * newVCs = [NSMutableArray array : [YourTabBarController viewControllers]]; // The first new VC you want to add (for example a nib) [newVCs addObject: [[[SomeCustomViewController alloc] initWithNibName: @ "yourNibName" bundle: [NSBundle main bundle]] autorelease]]; // The second new VC you want to add (example for the VC generated from the code) [New VCDAdject Object: [[[Other Custom ViewController alloc] initWithNibName: Zero Bundle: Zero] AutoWreck]]; // You want to add the third new VC (Example from IBotlet) [New VCS Adject: Self. Yateanthhe Vicentron]; // Set the visual controller of the tab bar in your newly modified array [yourTabBarController setViewControllers: newViews];  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -