uitabbar

How to change UITabBar Selection color

Hi, I need to change the selection color of UITabBar from default blue to red. How do we do this. ...

Programmatically select a tabbaritem in "More"

I am using UITabbarController with 8 to 9 items (these are UINavigation controllers) It is easy to select an item programmatically using tabbarcontroller.selectedIdex = x; if x value is between 0 to 4 then it's work as expected but if it's greater than 4 then it's select "More" as a view controller. How can we programmatically select...

UITabBarController embedded in a NavigationController

I know this question has been asked before and the solutions I've heard is to not use a UITabBarController but to add a UITabbar to a view and push its corresponding viewController to the navigation controller. However, when I use this method, I can see the tab bar, but I can't display the tabbaritems on the tabbar. It only shows a tabb...

UITabBar in Interface Builder - too messy?

Hi, I have a view controller and I want to host a UITabBar on it. When the user clicks on different tab items, I want to show different views. I have this working, but it's hard to maintain. In InterfaceBuilder, I simply created all my tab views, hide them. In my project, when the user clicks on one of the tab items, I simply set the h...

hiding TabBar when rotating iPhone device to landscape

Hi, So here is what i have: A UITabBarController that handles different UIViewControllers. In one of the UIViewController i am trying to switch the view being displayed when the device rotates to landscape. the important part is that the view displayed in landscape MUST take the whole screen... I have correctly implemented the methods :...

iphone - hiding UITabBar without presentModalViewController or pushViewController

Hey guys, like the question states, I am trying to slide in a UIDatePicker without using presentModalViewController or pushViewController and subsequently hide the main UITabBar of the application. Right now, I am adding the UIDatePicker subview with a couple buttons on a Navigation Bar to a temporary UIViewController, and initializing a...

iPhone UIActionSheet called from UITabBar Button

Is there a way to call an ActionSheet directly from a tabbar. I'm working on a program where the user wants a contact button on the tab bar that displays an actionsheet with the appropriate buttons. Thanks in advance ...

Accessing a TabBarItem from within one of the ViewControllers

Hi there, i'm searching for a way to disable a TabBarItem from within the ViewController of one of the TabBars Tabs. I'm even not sure if this is about the View Hierarchy or what to really search for. I tried a lot but didn't come up with a solution. Right now I worked arround it by saving a reference to the tabbar in a singelton objec...

Iphone application crashes when poping to rootController of UITabBar tab

Hello, I'm having this bug I can't figure out and it is making my head hurt. So, basically, in my iphone application I have UITabBar with some tabs each having UINavigationControllers inside. Something like this: someViewController *someController = [[someViewController alloc] myInit]; UINavigationController *someNav = [[UINav...

iPhone dev - cache values of tab bar view controllers

I have a root UIViewController subclass that has a UITabBar, (I'm not using UITabBarController) and 5 tab bar items for 5 view controllers. Each view controller has a UIPickerView. Only one view controller is ever instantiated at a time -- when a tab bar item is selected, the current one is removed, the new one is instantiated and added,...

Resizing viewControllers view that are part of a UINavigationController on IPhone

Hello, I am using a UINavigationController to handle the pushing and poping of viewControllers in my app. Theres a section where i have a tab bar (not using UITabbarController) which is manageed by the same UINavigationController, i simply add the UITabBar to the navigation controllers view (by using addSubview). The Problem: I have ...

Preventing a UITabBar from applying a gradient to its icon images

When I make icons for a UITabBar, it applies a gradient to the images. I need to know how to prevent it from having this gradient. ...

Which UI element for day-switching bar?

In the Calendar app on the iPhone, when displaying a day, you can switch to the next an previous day with a gray bar at the top. My question is: which interface element would you use for that? UIToolbar, UITabbar or a UINavigationBar? UINavigationBar provides pretty much what I need: the possibility to add a button at the left and at t...

Calling a method when UITabBar is selected?

Hi all, I'm currently writing a app on the iPhone and was just wondering if anyone knew a way to call a function but only when a tab is selected. I have a separate view controller for the tab in question and I want to call a function which updates the GPS position when the tab is selected. If anyone could help that would be great :) ...

UITabBar Badging

Any idea why this works: [[[[[self tabBarController] tabBar] items] objectAtIndex:2] setBadgeValue:@"Hello"]; But this doesn't? [[self tabBarItem] setBadgeValue:@"Hello"]; I would rather not have to provide an explicit tab bar index (2 in the code above). Also, is there a way to get the ta...

How to set the Navigation Bar Color of the Tab Bar Configure Menu

As you can see the view I need to change is the provided view to customize the tabbar order. I want to change the color of the navigation bar (displaying "Konfigurieren" which means "Configure"), I already found out how to change the color of the "More"-Navigation Controller, but not this one. Can anybody help me with that? ...

Custom UITabBarController Problems with View Controllers and Views

Hi there, I'm writing a custom UITabBarController so I can fully control appearance of the tab bar. I've got it all working so I have an array of view controllers that it handles. The controller has a main view which fills the screen, and inside it it has a UIView at the bottom for the tab bar. That tab bar view has a button for each v...

Making a thinner UITabBar

I would like to be able to thin the UITabBar's height by removing each item's titles and reclaiming the vertical space they take up, a la Tweetie 2. This doesn't seem settable in the .xib or programmatically. Will I have to subclass the UITabBar and roll my own? ...

How to remember last selected tab in UITabBarController?

I'm trying to make my app remember which tab was last being viewed before the app quit, so that the app opens up to the same tab when it is next launched. This is the functionality of the iPhone's phone function: how can I do this? ...

Customizing icon position and title of UITabBarItem's (iphone sdk)

Hello, I have a tabBar, and I want to customise the items in the tab bar. I want to prevent the display of the title (easily achieved by setting the title to nil), and reset the icon position to be in the central vertical position. Does anyone have any idea of how this can be done? Thanks. ...