I have a tabBar Controller with 2 tabs: firstVC, secondVC. And when tabBarController appears i want to see on the screen this tabBar controller with 2 tabs and active controller(called main) not from this tabs. Is it possible?
Yes.
You can embed those 2 tabs in navigationControllers. Each of the 2 tabs will have its own stack of viewControllers.
Take a look at this answer for a detailed description.
Related
Can I add more than 8 tabs on UITabBarController?
My code is here:
UITabbarController *tabbar=[[UITabbarController alloc]init];
tabbar addTabItems......
You can add as many view controllers to UITabBarController as you want. The right most tab button will be called More with three dots which will take you to the screen where you can edit which view controllers to show and which ones to hide.
Yes you can add 8 tabbars but only 5 will be visible and for remaining, it'll show you a dotted tab on clicking that tab it'll show the list of remaining tabs in your tabbar.
I'm beginner in Iphone development. I have an app in which there is a tool bar ,when I click the tool Bar buttonI need to display modally a Tabviewcontroller with 3 tabs and navigation bar. Is it possible to do this? May be it is simple,but i'm a beginner. How it can done?
Any help would be appreciable.
What is the issue that you are facing? Overall this is what you need to do:
Create a UITabBarController with 3 items. (There are resources everywhere where you can figure how to do this)
Handle what you do with the 3 views/tab items. Your navigation bar logic goes there. You set up the navigation bar for the 3 different views from the 3 tabs.
Present it as a modal view using:
[self presentModalViewController:yourTabBarController animated:YES];
Is it possible to have a UITabBar in such a way that the following things are possible.
Once the app opens, none of the Tabbar items are highlighted (not even the first one). (call it homeview)
if the first Tabbar item is selected it goes to the first view and so on.
Hide the UITabbar for certain Tabbar items.
Allow any subview to go back to homeview.
Any tips on how to go about doing this will be appreciated.
Thanks
I had a similar thing to do:
start with a navigation controller
at some point show an UITabBar with multiple controllers
from some controllers from the UITabBar continue the main navigation controller
from any controller go to the home view (on logout)
For this to work I pragmatically created the UITabBar and pushed it on the navigation stack and from the controllers in the UITabBar I pushed other views on the stack.
To navigate to the root controller you can use this:
[self.navigationController popToRootViewControllerAnimated:YES];
I have a requirement with below steps,
1. Login page
2. Page2
3. Page 3 - table view
Now I want to display a tab barcontroller with 4 tab items on page 3. All the 4 tab items have individual view controller. Page 3 is not one of the items of tab controller, it just contains the tabcontroller so that the user can access 4 other functionalities that the app provides. I do not want to display it on the login page and page 2 so adding the tabcontroller to MainWindow is not a possibility. Can anybody please help me out with adding a tabbar controller to a uiview having uitableview.
You may find this question useful: Tab bar controller inside a navigation controller, or sharing a navigation root view
Alternatively, after Page2 you could swap out the entire root view controller from your window and replace it with a UITabBarController's view. Since this won't be part of a navigation stack, you'll have to manually swap the views.
I want to have a UIView inside of a NavigationController that has 4 buttons. Clicking on any of these 4 buttons will push a UITabBarController that contains a NavigationController with a respective UIView.
Is this possible? Tweetie seems to do something similar.
On my application, I have a tab bar view controller, then inside of that, I have navigation controllers going to individual views in my interface builder. I believe if you just copy this format, it will work.(-> means connected)
Tab Bar View Controller->4 separate Navigation Controller->ui views
I hope this helps