Questions tagged [uitabbar]

UITabBar is a user interface element in Apple's iOS, which is a bar at the bottom of the screen and has images and/or text representing different views of an application.

UITabBar

UITabBar - iOS Class (Apple Docs)

Class Structure = UITabBar : UIView : UIResponder : NSObject

A UITabBar is a common user interface element used in constructing multi-view applications. Each tab/button may contain text or an image, and when pressed corresponds to a , or a subclass of (such as a ).

Image: screenshot of the UITabBar in Apple's Health application.

UITabBar Example


The object which controls a Tab Bar, is a . This class manages the view swapping that occurs when the user selects another tab.

2257 questions
32
votes
8 answers

How to set badge value in Tab bar?

i have to read datas from xml and have to display values in view controller. am using tab barcontroller . where i have to read xml data and have to display it in tab bar as badge. here is my controller code. -(void) parser:(NSXMLParser *)parser…
user2728139
  • 343
  • 1
  • 3
  • 9
31
votes
8 answers

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

removed dead ImageShack link 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…
gabtub
  • 1,430
  • 2
  • 18
  • 20
30
votes
5 answers

automaticallyAdjustsScrollViewInsets not working

I've created an extremely simple demo app to test the functionality of automaticallyAdjustsScrollViewInsets, but the last cell of the tableView is covered by my tab bar. My AppDelegate code: UITabBarController *tabControl = [[UITabBarController…
danielmhanover
  • 2,884
  • 3
  • 32
  • 50
30
votes
14 answers

Is it possible to change UITabBarItem badge color

I want to change background color of UITabBarItem badge but can't find any resource on how to make it.
1110
  • 7,801
  • 45
  • 156
  • 303
29
votes
6 answers

Is there a way to change the text position in UITabBar or UITabBarItem?

This is a custom tab bar I intended to put up on the screen. However, my partner want the text to be slightly up. How can I do so?
user4234
  • 1,763
  • 1
  • 19
  • 33
27
votes
6 answers

How to change the Color of text in UITabBarItem in iOS 5

with more appearance control in iOS 5, how do we change the UITabBarItem text color ? from default white to other color ? EDIT:working solution [[UITabBarItem appearance] setTitleTextAttributes: [NSDictionary…
Desmond
  • 4,943
  • 14
  • 51
  • 112
27
votes
3 answers

Really cool way to create custom UITabBar for iPhone app?

I am doing a lot of researching lately about how to get a different looking with nice effects UITabBar on my iPhone app, but unfortunately I am only finding things on how to replace background color etc. Well, I've checked out this app called…
zanona
  • 11,379
  • 24
  • 78
  • 137
27
votes
3 answers

How to definitively set UITabBar background color and tint color

I have been trying to set my UITabBar's tint color and background color for quite some time now and nothing seems to work. So far I have tried: tabBarController?.tabBar.backgroundColor = UIColor.orangeColor() tabBarController?.tabBar.barTintColor =…
Harry Merzin
  • 336
  • 1
  • 3
  • 10
27
votes
9 answers

Positioning UITabBar at the top

I'm a beginner in iOS development. My question is: is it possible to position UITabBar at the top and how? I can't position my UITabBar at the top of the view.
AlgroDev
  • 353
  • 1
  • 3
  • 8
27
votes
6 answers

Select a tab bar item programmatically (not using UITabBarController)

I have a view derived from UIViewControler (not UITabBarController). In this view I added a tab bar with several tab bar items. I used the UITabBarDelegate to allow the view to do something when users tap on each tab bar item. class…
tala9999
  • 1,214
  • 2
  • 11
  • 22
27
votes
11 answers

How can I change the text and icon colors for tabBarItems in iOS 7?

How can I change the text and icon colors for UITabBar and UITabBarItems in iOS 7? The default gray text seems dim and hard to read for unselected tabbar items.
Ed Fernandez
  • 1,783
  • 2
  • 13
  • 18
26
votes
9 answers

hidesBottomBarWhenPushed = NO not working?

I have a UITabBar in my app, which I'm hiding on the first UIViewController in the first tab by putting this line in the AppDelegate: // ... in MyAppDelegate.m firstViewController.hidesBottomBarWhenPushed = YES; In the firstViewController, the user…
rottendevice
  • 2,719
  • 6
  • 28
  • 36
26
votes
11 answers

TableView Showing Behind Tab Bar

I am updating my app to use iOS 7 and I'm having a problem with a table view. My tab bar is translucent. The problem is when I scroll to the bottom of my table view, part of the last cell is still behind the tab bar. I'd like to have a bit of…
raginggoat
  • 3,450
  • 9
  • 42
  • 99
25
votes
3 answers

How to change the highlight colour of tabbar icons? (iPhone/iPad)

I have been looking around online for an answer to this question for several days now with no success. Essentially what I want to do is change the highlight colour of the icons in my UITabBar. By default they are highlighted in blue when selected,…
user843337
24
votes
5 answers

How to animate Tab bar tab switch with a CrossDissolve slide transition?

I'm trying to create a transition effect on a UITabBarController somewhat similar to the Facebook app. I managed to get a "scrolling effect" working on tab switch, but I can't seem to figure out how to cross dissolve (or it doesn't work at…
JoniVR
  • 1,328
  • 1
  • 17
  • 32