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
2
votes
1 answer

Set multicolor tab bar icon instead of monochrome icon

I need a way to have multicolor tab bar icons, but for some reason, iOS keeps drawing the icon in a monochrome fashion. I tried various methods such as including this line of code: tabBarItem.image =…
Harish
  • 1,374
  • 17
  • 39
2
votes
4 answers

How to spacing tab bar items equally in tab bar

I have 3 tab bar items, I want them to show like this in tab bar: | | | 1 2 3 | | | I see this property in InterfaceBuilder: I have tried all cases, but it doesn't work, it shows something like…
Twitter khuong291
  • 11,328
  • 15
  • 80
  • 116
2
votes
1 answer

UITabBar items with each one different color when selected

I have a multiple page tab bar application. I want each tab bar item (image) to have its own color when selected. For example, the first one should be red when selected, the second should be blue, the third should be yellow... I have tried to use…
Marc Ibrahim
  • 299
  • 5
  • 18
2
votes
0 answers

Long press gesture on UITabBarItem

I am trying to recreate the behaviour in Instagram app. When a user has multiple Instagram accounts, the settings tab becomes the current users profile picture. (attached) When a user long presses on the settings tab item it produces a pop up view…
Jeremy Sh
  • 609
  • 7
  • 24
2
votes
2 answers

How to set Tab bar item badgeValue in objective c?

Actually I have one custom TabBarController and I need to set badgeValue for separate tabbaritem at initially that custom tabar loaded with that index path of the tab bar item. [[self navigationController] tabBarItem].badgeValue = @"3"; I used…
2
votes
1 answer

Setting different view controller for one tab

I have 5 tab in my tab bar controller. Users can use my application as anonymus user. One of my tabs is Login page. if user logged in my application, that tab should be Home page. but I don't know how set different view controller for one tab based…
Saber Solooki
  • 1,182
  • 1
  • 15
  • 34
2
votes
1 answer

How to change background of specific UITabBarItem

How could I change the background color of only one of the tab buttons in a UITabBar? I want to recreate Instragram's old tabbar design (pictured on top) where the "post picture" tab in the middle has a different background color. And a follow up to…
Tommy K
  • 1,759
  • 3
  • 28
  • 51
2
votes
1 answer

Changing the background color of only one UITabBarItem

I'm trying to create a look like Instragram's old tabbar, where the middle tab button was the "upload" button (old tabbar pictured on top). After clicking this the tab bar gets hidden and you're taken to an upload screen where you can then cancel…
Tommy K
  • 1,759
  • 3
  • 28
  • 51
2
votes
0 answers

Remove Text from UITabBar and adjust Alignment in AppDelegate [Swift]

I cannot figure out how to remove the text from the UITabBar and move the images down accordingly. If it cannot be done in the AppDelegate then what code would I need to get the job done. I found some code from another post on how to do this but it…
EatMyGuts
  • 33
  • 4
2
votes
2 answers

custom image for tabbar item

change a custom image for UITabBar item I have used this code but, it's not working. UIImage *selectedImage0 = [UIImage imageNamed:@"f.png"]; UIImage *unselectedImage0 = [UIImage imageNamed:@"f.png"]; UIImage *selectedImage1 = [UIImage…
Gova
  • 41
  • 5
2
votes
1 answer

Drawing from PaintCode StyleKit to UITabBarItem

I need to use a PaintCode StyleKit in a UITabBarItem. If I was working with a UIButton, I would simply use these lines of code: override func drawRect(rect: CGRect) { MyStyleKit.drawButton(self.frame) } But if I have to work with a UITabBarItem…
Fabio Cenni
  • 841
  • 3
  • 16
  • 30
2
votes
2 answers

How to swap position of tab bar item when refactored storyboard

When i refactored storyboard same photo in this link. I can't find where i can swap position of tab bar item. example i want to change main menu to index 0. this is my storyboard.
2
votes
1 answer

UITabBar selected tint color

I need to change uitabbar selected tint color from blue to yellow. How can i do it??? Can any one help me with this??
PgmFreek
  • 6,374
  • 3
  • 36
  • 47
2
votes
0 answers

How to manage tab bar item in running app in ios

I have created a storyboard with UITabbarController as initial rootViewController and added 6 items in tab bar Till here it is fine. now i need to manage tab bar items on following conditions : if user not logged in - remove 6th item if user…
Sujay
  • 2,510
  • 2
  • 27
  • 47
2
votes
2 answers

Custom font being clipped in UITabBarItem title

When using certain custom fonts in a UITabBarItem i'm seeing some of the characters being clipped at the bottom. I also saw this occuring on UIButton's but found a fix for that which was to subclass the UIButton and override the following…
Andy Davies
  • 4,287
  • 5
  • 24
  • 31