uitabbarcontroller

Change color of NavigationBar for the "More" tab?

When you have more than 5 view controller in your TabBarController, a "More" view is automatically setup for you. Is it possible to change color of the navigationBar in this view to match the color I am using, instead of the default blue? ...

iPhone - switching a view controller in the tabbar and call a method

Hello! I have a TabBar in my application and I do this in my AppDelegate: ... test2ViewController = [[Test1ViewController alloc] init]; ... navigationTest2Controller = [[UINavigationController alloc] initWithRootViewController:test2ViewController]; NSArray *myControllers = [NSArray arrayWithObjects:..., navigationTest2Controller, nil]...

Instance of the ViewController

Hello! I want to access the current ViewController. I have a TabBar with a NavBar and there is a ViewController in it. In this ViewController (TableView) I made a "pushViewController" to a new ViewController. How can I access this one in another class. If I do: [(MyTestDetailViewController *)[[(UINavigationController *) [appDelegate....

How to: Save order of tabs when customizing tabs in UITabBarController

I am having problems finding any other information than the docs for how to save the tab order for my UITabBarController, so that the user's customization is saved for next app launch. I have searched online, but have been unable to find any blog posts or articles that goes through the proper code for doing this. I realize I have to use...

Adding a UITabBarController counter that looks like the Inbox items waiting counter

Does anyone have a sample, or link to one, of how to create a counter that looks like the Inbox counter? Any help appreciated // :) ...

How to add "more" button to Tab Bar?

My iPhone app has a tab bar controller at the bottom of the view - and at the moment I have three buttons on it. However, I want to add more, but to do so I need to turn the last of the three buttons into a "More..." button, because otherwise the text on the other buttons runs into each other. I know that if you have over 5 buttons in t...

UITabBarController Hide Show Bars with animation like the Photo APP

Hi there, i'm having a real trouble with UITabBarController. I have a simple foto app, and I'm trying to simulate almost the same behaviour as the PhotoApp from the Iphone the main view controler is the tabbar itself, i also have a NavBar and a status bar on top. What i want is on tap to hide the bars (not with timer, just on tap). The ...

Implement Back action into UITabBarController

Hi, I have a controllerView (MenuControllerView) with a button inside, when I click on the button a new ViewController will appear with a TabBarController created programmatically like this: UIView* topView = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,480)]; tabBarController = [[UITabBarController alloc] init]; viewController1 ...

Tab bar navigate to root view

I have a tab bar based application with navigation on each tab bar item. When i navigate to another view on any tab bar item and click on on tab bar item,then root view controller on that tab bar item is called. Its like PopToRootView . Can we disable this situation? ...

TabBar Controller question

I have an app that has four tabbar controllers views in it. When the app starts up, all four are loaded via SQL select statements. How do I tell it not to load these controllers at startup, but to do it when I select a value from the first screen? thx wes ...

How to share a ManagedObjectContext when using UITabBarController

I have an iPhone application that has a MainWindow.xib holding a UITabBarController, which in turn has a UINavigationController and a custom UIViewController subclass in its ViewControllers array. The root view controller for the UINavigationController and the custom view controller are both loaded from other xib files. The app uses cor...

Subclass of UITabBarController, replaced the TabBar and have a display issue

I have an iPhone app which was built using a standard UITabBarController. This app was created using the standard XCode project template. Now, I have a requirement to change the UITabBar to look very different. The approach I decided to take was like this: in my AppDelegate: for (UIView *view in tabBarController.view.subviews) { ...

tabBarController memory leak

In my AppDelegate I initiate a tabBar Controller, to which a bunch of navigationController is added as tabs. I use the following code: // Init tabBar Controller tabBarController = [[[UITabBarController alloc] init] retain]; // Init Root Views of navigation controllers FirstRootViewController* firstViewController = [[[FirstRootViewContr...

iPhone SDK: How to access a ViewController nested in a TabBar from MyAppDelegate?

I'm trying to call a method in my FirstViewController that is the File Owner of the first View in a TabBar. I've tried using this line of code but just get the error "No '-showData' method found": [[tabBarController.viewControllers objectAtIndex:0] showData] But the log says that [tabBarController.viewControllers objectAtIndex:0]...

iPhone Dev - "More" TabBarItem - how to change the title?

Hi, guys! I'm using TabBarController and I have more than 10 View Controllers in it (that's why I can see "More" tab, where I can access the rest of the views). My question is: Is there any way to change the title of the "More" tab bar? (I know how to change the title of the view: tabBarController.moreNavigationController.navigationBar...

Load a tabBarController from a UIButton in a subview

I am working on an app where i have a view controller that contains a view in that view i have a button that when pressed i would like it to load my tabViewController. I trying to get a splash screen to load before my app so i can do some downloading and parsing of data before i load my tabViewController because the data im putting the ...

Proper way to setup a UISegmentedControll on UINavigationController UINavigationBar all inside UITabBarController

The title pretty much describes it all. The problem being the handling of the UISegmentedControll callbacks (button presses). If the content type of all of the nested views was the same (i.e. some UITableViewControllers) then I could just switch dataSource'es and reload the tables. However this is not the case, I have 3 very differen...

iPhone sdk tab bar auto rotate on orientation change

Hi, I have a an application that has a tabbar controller and some navigation controllers inside the tab bar controller. I customized the tab bar by extending it and implementing the shouldAutoRotateOnOrientation Change method and returning YES for specific view controllers that I wish to show allow auto rotation. This works fine until I...

How to change number of tabs in tabbar controller application ?

Hi I am developing an iPhone tabbar application with 5 tabs . I want to show only two tabs at the launch time such as one is "locate me". When the user taps on the locate me tab another 3 tabs will be shown and can use the current location. I want to do some thing like "urban spoon" . I am using the interface builder for all the stu...

Is there a way to prevent the configuration of tabbar items?

I constructed a tabbar with more than 5 tabs and the remainders were automatically added into the "More" view. That is fine, but along with that, the user is able to "Edit" the configuration of the app's tabs. I do not want the user to be able to do that. Is there a way to prevent the user from doing this? ...