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
3
votes
3 answers

iOS8 How to set TabBarItem images

It seems something has changed with iOS8 and now none of my tab bar icons are showing up properly. Most of the time they don't show until the tab is active: But sometimes they don't show up at all and give me just a big blue box (like whenever I…
Chase Roberts
  • 9,082
  • 13
  • 73
  • 131
3
votes
1 answer

Changing UITabBarItem image

I have used Storyboard to set up my UITabBarController and its corresponding ViewControllers. Whenever a tab is deselected, it is gray, when it is selected it has a green tint. I would like one of these UITabBarItems to always look the same: i.e. it…
dcgoss
  • 2,147
  • 3
  • 20
  • 31
3
votes
0 answers

How to add Tab Bar Item to UiTabbarController without link with UiView

1.In storyboard i have 1 Tab Bar Controller(not Tab Bar) link with 4 View. 2.I want to add Tab Bar Item without link with view. Because i want to click it's and do something (not open view). 3.I Can't drag and drop Tab Bar Item to Tab Bar…
user2955394
  • 1,063
  • 4
  • 17
  • 34
3
votes
2 answers

Interface Builder issue with Tab Bar

I have duplicated this on both Xcode 6 - beta 2 AND Xcode 5 on a different machine. Surely this can't be a bug as it is such a common task it would have been caught by now. I drag a tab bar to a view controller. All good. I drag an additional tab…
Justin Moore
  • 884
  • 2
  • 9
  • 22
3
votes
2 answers

Programmatically setting UITabBarController's viewControllers and selectedIndex results in no selected UITabBarItem

I have a weird bug in both iOS 6 and 7 with the following UITabBarController subclass code: self.viewControllers = @[self.myKitchenNavigationController, self.photosIndexNavigationController, …
Rivera
  • 10,792
  • 3
  • 58
  • 102
3
votes
1 answer

iOS7 tab bar custom icon height - height reduces until icon gets invisible

I implemented tab bar with custom icon sizes to match the design: The first and the last icon sizes are reduced to fit below the circle line by setting the bar item sizes as follows: The strange behaviour that happens only on iOS7+ is that when…
Despotovic
  • 1,807
  • 2
  • 20
  • 24
3
votes
1 answer

How to use Apple custom UITabBarItem images?

Apple has provided an example the View Controller Programming Guide, for creating an UITabBarItem, like this: - (id)init { if (self = [super initWithNibName:@"MyViewController" bundle:nil]) { self.title = @"My View Controller"; …
openfrog
  • 40,201
  • 65
  • 225
  • 373
3
votes
3 answers

Maximize Size of UITabBarItem image

I would like to create a custom UITabBarItem with a Icon-image thats size is a little bit bigger than usual. The thing is I don't want to use a full replace of the background image because i would like to have the translucent effect of the…
SaifDeen
  • 862
  • 2
  • 16
  • 33
3
votes
6 answers

An unwanted line on Tab bar controller under ios7

Under iOs7, and not earlier versions, I've a line who pass through my Tab Bar (shown with green arrow on example picture from the link below). I don't know where the problem come from. Any idea how to correct it ? Thank you very much.
PatriceK
  • 37
  • 1
  • 6
3
votes
3 answers

How to open the third tab bar item when my application launches?

I'm working on a tab bar application with five items in it and I want to open the third view controller which is associated to the third tab bar item when my application launches instead of the first one which opens by default. How can I approach…
Free light
  • 93
  • 1
  • 7
3
votes
2 answers

disable rearrange the tabs iphone

I have a six UITabBarItem in a UITabBarController. I want to disable the NavigationBar that auto-generates the tab number 5, which allows you to reorder the tabs as you want. Is there a way to disable this function? EXTRA I use customtabbar but in…
3
votes
5 answers

iOS didSelectTabBarItem knowing what item was selected prior

I have an IOS app with a UITabBar and have its delegate set to my class.. the didSelectTabBarItem properly fires and all is right with the world. However I do have some conditional code that has to occur when the UITabBarItem selected is after one…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
3
votes
0 answers

Xcode how to create custom tab bar item with standard system icon but with custom title

I'm trying to create a custom tab bar item with a custom title but I do want to use a standard system icon. Here's my code: UITabBarItem *aboutUsItem = [[UITabBarItem alloc] initWithTabBarSystemItem: UITabBarSystemItemContacts tag: 0]; …
Robin.v
  • 719
  • 3
  • 8
  • 16
3
votes
1 answer

iPhone UITabBarItem two lines title

I have to set a title, which is a bit long, in a UITabBarItem; so the question is: Is it possible to set a title which has two lines in a UITabBarItem? I have tried the following way (but it does not work): UITabBarItem* myTabBarItem = ...…
Genar
  • 725
  • 1
  • 10
  • 27
3
votes
1 answer

How to change Tab Bar Background color and Tab Bar Item color on Storyboard

I am a new learner. I have created a new storyboard with tabbar controller. I want to change the background color, item color and text color. I search through but I found only changing color with coding. What are the necessary steps to customize…
zhtway
  • 283
  • 5
  • 20