Questions tagged [uitabbaritem]

The UITabBarItem class implements an item on a tab bar, instances of the UITabBar class. Tab bar items are used to configure the tab bar.

Tab bar items gives the ability to switch between different subtasks, views, or modes. A tab bar operates strictly in radio mode, where one item is selected at a time—tapping a tab bar item toggles the view above the tab bar. There is a way to specify a badge value on the tab bar item for adding additional visual information—for example, the Phone application uses a badge on the item to show the number of new messages. This class also provides a number of system defaults for creating items.

991 questions
31
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,523
  • 1
  • 20
  • 37
29
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,823
  • 2
  • 14
  • 18
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
  • 12,345
  • 25
  • 86
  • 141
27
votes
1 answer

Swift setting Badge Value for UITabBarItem

I'm attempting to add a badge alert label like the one in the screenshot attached. I've tried to search for titles, labels uitabbar items but I'm stuck. Any suggestion is appreciated.
Gino
  • 951
  • 1
  • 12
  • 24
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,540
  • 2
  • 15
  • 25
26
votes
7 answers

Xcode Tabbed Application - Adding New Tab view

I'm working with Xcode 4.2. I started to work with Tabbed Application and now I want to add 3rd and 4th Tabbed to story board on my application. How Can I add it? I try to use it but I cannot. :( I didn't get good tutorials for it. Does anyone have…
Gayan
  • 1,425
  • 4
  • 21
  • 41
26
votes
8 answers

Detect UITabBar Selected Index/ Item Changes that is set Programmatically

I would like to know how do we detect when the selected TabBar Item or Index is changed when the changes is done programmatically? self.tabBarController.selectedIndex = 1; This two delegate function only detect changes when the tabBar Item was…
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
24
votes
15 answers

How to add small red dot in UITabBarItem

How to add red dot on the top right side of the UITabBarItem. I have searched a while and some guys said this can be done setting Badge Value of the UITabBarItem.But when I give it a try and set badge value to empty space " ",the red dot is…
tounaobun
  • 14,570
  • 9
  • 53
  • 75
24
votes
7 answers

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.
obsoleteModel81
23
votes
6 answers

Tab bar not showing icons?

I read a bunch of related questions, I tried what they said, nothing works really. Not sure why. So, I have 3 different UIStoryboards. First one is the Auth Storyboard that handles Login/Register and there's a storyboard reference to the second…
Dani
  • 3,427
  • 3
  • 28
  • 54
23
votes
12 answers

iOS 7.1 issue - Tabbar icon image is automatically resize when touch and drag on that tab button

I have this code [tabBarItem1 setFinishedSelectedImage:[UIImage imageNamed:@"tab_pressed_home_icon"] withFinishedUnselectedImage:[UIImage imageNamed:@"tab_home_icon"]]; tabBarItem1.imageInsets = UIEdgeInsetsMake(8, 0, -2, 0); which set an icon on…
SaintTail
  • 6,160
  • 4
  • 31
  • 51
21
votes
4 answers

Preserving the original image color of the selected and unselected UITabBar icons

The structure is the following: In my storyboard, I have a Tab Bar Controller which contains a Tab Bar object. This object has a custom class in which I have only this method: - (void)awakeFromNib { NSArray *imageNames = @[@"test1", @"test2",…
Alex
  • 2,325
  • 3
  • 29
  • 35
19
votes
8 answers

UITabBarItem Icon Animation

Skype app for iPhone uses animated TabBar icons. For example, during the logging-in the rightmost tab icon shows circulating arrows. While calling the "Call" tab icon softly blinks which is obviously done through animation. I wonder how is it…
Sergey Lost
  • 2,511
  • 3
  • 19
  • 22
19
votes
5 answers

IOS 8 Tab Bar Item Background Colour

I've been trying to find the solution to this for the last week, and I have had no luck after trying every possible solution I could find or think of. Every solution I found and have attempted has either not worked, or been outdated. I have 5…
user2985289
  • 203
  • 1
  • 3
  • 10
19
votes
4 answers

Change tintColor of unselected UITabBarController item title and background image

How can I change the tintColor of an unselected UITabBarItem title and background image iOS 8? The default color for an unselected state is a light gray color, but it does not show on my darkish shade UITabBar background I'd like my unselected…
SleepsOnNewspapers
  • 3,353
  • 3
  • 23
  • 29
1
2
3
66 67