uitabbarcontroller

UITabBarController and rotation

Hi, I'm having a real issue with UITabBarController. The outcome I'm after is the following: 1) in portrait mode, a simple tab bar based application (with navigation bars) nothing too fancy. 2) in landscape mode, I want to use my own UIViewController ignoring the UITabBar completely. The approach (I tried many variants) I tried last wh...

Iphone: TabView + TableView

I think I'm missing something simple, but I can't figure out exactly what it is. I'm trying to set up an App with a UITabViewController, and one of the Tabs will have a UITableView and UISearchBar (but no Navigation Controller). I set up the UITabViewController with all the tabs in interface builder, and the views are in their own xib ...

Changing Tint / Background color of UITabBar

The UINavigationBar and UISearchBar both have a tintColor property that allows you to change the tint color (surprising, I know) of both of those items. I want to do the same thing to the UITabBar in my application, but have found now way to change it from the default black color. Any ideas? ...

Tab bar controller inside a navigation controller, or sharing a navigation root view

I'm trying to implement a UI structured like in the Tweetie app, which behaves as so: the top-level view controller seems to be a navigation controller, whose root view is an "Accounts" table view. If you click on any account, it goes to the second level, which has a tab bar across the bottom. Each tab item shows a different list and l...

[iPhone] tabBar viewControllers in IB: send custom init?

Hello, My tabBarController-based app has several tabs. Each has a custom viewController class, the only difference being the way the instance is initialized. Is there a way to make interface builder send the different tabs custom init parameters? Currently I'm doing the initialisation in viewWillAppear, but for a bunch of reasons it wo...

How can I access _tabBar instance from UITabBarController

I am trying to access the _tabBar instance from a UITabBarController. I am trying to hide the tabBar in certain situations, for this, I added an extension to UITabBarController, where I can access the _tabBar instance, and call the setHidden message. This works when compiling for the simulator, but when I compile for the device, I get th...

Optimization UITabBarController + UITableViewController problem

I wanted to start a optimization thread. I have ran into an interesting situation, I have an iPhone app with 3 UITableViews each displaying more or less the same data (you can say it's a matter of filering). To date I had 3 separate NIBs for this, each with it's own controller, additionaly the UITableViews were inside UINavigationContr...

Hiding UITabBar when pushing a UIView

I have a UITabBarController where the default view controller is a UINavigationController. I want to be able to hide the UITabBar of the UITabBarController when I push a certain view in the UINavigationController. I've tried adding: delegate.tabBarController.hidesBottomBarWhenPushed = YES; in my UINavigationController before I push t...

UITabBarController Memory management problem inside UINavigationController

I have to use a UITabBarController inside UINavigationController. Everything seems to be right, but if i log the dealloc calls of the tabs some strange thing happens. If I don't touch eanything just the back button, all dealloc of each tabs are called. If I switch to any other tab and than I tap the back button the dealloc of the first ...

self.tabBarItem.title not working?

Hello, In my iPhone application, I have a tab bar. This tab bar holds a UINavigationController. I have: In Interface Builder set the tab item title to 'Create New' In the UINavigation controller I have self.tabBarItem.title = 'Create New'; and self.title = 'Create New'; In the UIViewController pushed onto the controller: self.tabBarIte...

iPhone SDK: How can I determine the last active tab in a TabBarController?

One of the tab bar controller tabs in my iPhone app changes what it displays based on where the user arrived from (which other tabs). For example, if the tabs are A, B, C and D, the C tab will display a picture if the user was previously on tab A, but text if the user was previously on tab B. I'm not sure how to implement this withou...

tabBarController and navigationControllers in landscape mode, episode II

I have a UITabBarController, and each tab handles a different UIViewController that pushes on the stack new controllers as needed. In two of these tabs I need, when a specific controller is reached, the ability to rotate the iPhone and visualize a view in landscape mode. After struggling a lot I have found that it is mandatory subclassin...

How to get a reference to the UITabBar in an iPhone app

UIActionSheet has a showFromTabBar: method - (void)showFromTabBar:(UITabBar *)view But how to get a reference to the UITabBar? I'm currently using UITabBar *tabBar = [self.tabBarController.view.subviews objectAtIndex:0]; I've also seen someone traversing tabBarController.view.subviews and looking for the UITabBar instance. Is th...

Tab Bar Controller appearing offset from viewable screen - help?

I am attaching a Tab Bar Controller to an existing view with a toolbar, however I am getting the tab bar controller offset at the bottom, so you can just see the top of the items. I am using the following to attach the Tab Bar Controller to the view: (void)viewDidLoad { [self.view insertSubview:dashboardTabController.view atIndex:0]; }...

iPhone - Difference between a Library UINavigationController and my subclassing UINavigationController

I'm trying to understand the difference between using a UINavigationController inside a Nib (via the library window) and subclassing the UINavigationController. (For the purposes of this question, I'm not just specifically referring to a Navigation Controller; I'm referring to any Controller that is contained in the Library window in Int...

How to pass data to a UITabBarController

Hi, my app features a UITabBarController, which brings up some views. In the AppDelegate, I have to pass a (custom) model to it. Is the best way subclassing, or is there some better method? If I get it managed to have the model (e.g. Notes) in my UITabBarController, how do I access it out of the ViewControllers? Regards ...

Open a view in UITabBarController

Hi, I need to open programatically a certain tab in my tab bar. I tried calling the following method from my UITabBarController: self.selectedViewController = myVController; Which doesn't work. What is the right way to open a tab? Thank you. Update: I tried the following code: self.selectedViewController = [ [self viewController...

How to disable the edit button that appears in the more section of a UITabBarController?

In my application (based on the Tab bar application XCode template) I use a UITabBarController to display a list of different sections of the application that the user can access. By default, the UITabBarController displays a 'More' button in the tab bar when there are more than 5 items. Also, it allows the user to select the items that...

Generating icons for iPhone UITabBar

I’ve been busy working on the graphics for my iPhone application. I started working on generating icons for my UITabBar and ran into lots of problems. How do you create these icons? I created this solution: http://www.nailrails.com/?p=46 Are there any shortcomings to this approach? It seemed to work for the few icons I created... ...

UITabBarController is possible to select the tab via code?

is it UITabBarController possible to select the tab in code?like UINavigationController we can use popViewController pop back to rootViewController instead of press the back button, so how can this implement in tabbarcontroller? ...