I have created a tabbar based project and my first tab have a navigation controller. and in my navigation controller (after push 2 views) i want to add/push one other tabbarcontroller. so please can any one suggest how i do this.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UPDATE: After reading your post once more I think I misunderstood it! UINavigationControllers can’t have a UITabBarController inside them, it only works the other way round!
If you really want to do this (really think about it!!) you could write your own implementation of a UITabBarController that is happy inside of a UINavigationController (Twitter for iPhone uses such a custom written UITabBarController)
Link: UITabBarController insider UINavigationController
Just feed the tabbarcontrollers viewControllers property with an NSArray containing your UIViews.
tabcontroller =[[UITabBarController alloc] init];
someuiviewn are subclasses of UIViewControllers (maybe UITableViewControllers for example (or whatever :))