If i go straight to the point then my problem is i have an UIViewController with two button.
-
Button One –(onclick must navigate to)—>
UITabbarControllerwith 4UITabbaritem or i can take aUITabbarin my newUIViewController; -
Button Two –(OnClick must navigate to)—>
UITabbarControllerwhere firsttabbaritemwill contain containingUITableViewor or i can take aUITabbarin my newUIViewControllerwhere firstTabbarItemwill contain aUITableView.
How can i make this??? sample code will more helpful neither suggestion. if you need any clarification please do not hesitate to ask.
With Best Regards
Emon
First, you need to have a NavigationController if you want another view controller to be pushed on when you click a button. The steps you would need to do are the following
In the view did appear of the view controller have the following code
Ofcourse you have to have properties defined for tbc1 adn tbc2 in your view controller.
In the app delegate do the following
Change the UIViewController in the .h file to UINavigationController like
Have the two buttons and wire it to the following methods