Hello everyone,
I have found a great sample code from the internet that does exactly what I want. This sample code was done using only a UINavigationController. However, I want to do it in a UITabBarController with 2 tabBar Items; the first viewController is the same UINavigationController (exactly same as the code) and the 2nd one is just a UIViewController. This sample code is a courtesy of a Swedish Developer named Bjorn Sallarp.
The steps I did are:
1. Started a Window-Based Project.
2. Created the UITabBarController (IBOutlet UITabBarController *tabBarController
and so on.
3. Wrote in the didFinishLaunching method (addSubview:tabBarController..etc)
4. Dragged & dropped a Tab Bar Object in IB. Attached it to the Outlet in the App Delegate.
5. The first tab bar item, I put a new Navigation Object and deleted the former so there are only 2 views.
6. I created a new UIViewController & named it (navController) and classed it in the App Delegate. (IBOutlet navController UINavigationController *navViewController).
In that navController, I tried to imitate everything in the sample code. In other words, I treated the navController as another delegate so it can be done. I don't know whether I can do it this way or not. When you look at the code, you'll understood what I want.
I've tried it many times but without any successful attempts and I would appreciate any help or guidance.
Thanks.
I have found a great sample code from the internet that does exactly what I want. This sample code was done using only a UINavigationController. However, I want to do it in a UITabBarController with 2 tabBar Items; the first viewController is the same UINavigationController (exactly same as the code) and the 2nd one is just a UIViewController. This sample code is a courtesy of a Swedish Developer named Bjorn Sallarp.
The steps I did are:
1. Started a Window-Based Project.
2. Created the UITabBarController (IBOutlet UITabBarController *tabBarController
3. Wrote in the didFinishLaunching method (addSubview:tabBarController..etc)
4. Dragged & dropped a Tab Bar Object in IB. Attached it to the Outlet in the App Delegate.
5. The first tab bar item, I put a new Navigation Object and deleted the former so there are only 2 views.
6. I created a new UIViewController & named it (navController) and classed it in the App Delegate. (IBOutlet navController UINavigationController *navViewController).
In that navController, I tried to imitate everything in the sample code. In other words, I treated the navController as another delegate so it can be done. I don't know whether I can do it this way or not. When you look at the code, you'll understood what I want.
I've tried it many times but without any successful attempts and I would appreciate any help or guidance.
Thanks.