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

After updating to iOS 7.1 the tabBar images disappeared

After iOS 7.1 update, I can't see the images of the tabBar but if I click on one image it appears. I've the following code to set the images of tabBar items UINavigationController* myController; .. //some code here myController.tabBarItem.image…
Sawsan
  • 1,096
  • 10
  • 20
2
votes
1 answer

iOS 7.1: UITabBarItems have default color

Seems that this line does not work correctly after 7.1 update anymore: NSDictionary *tabBarTitleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:0.059 green:0.737 blue:0.596 alpha:1.0],…
filou
  • 1,609
  • 5
  • 26
  • 53
2
votes
1 answer

Disable rotation for one UITabbar item

I have a uitabbarcontroller with 4 tab bar items and each tab bar item has a uinavigationcontroller. I needed to lock the orientation of one uitabbar item only to Portrait. So i implemented the following code: Created a custom tab bar controller and…
2
votes
1 answer

Change UITabBarItem badge background color under iOS 7

Is there a way to change the badge background color under iOS 7? If not, how can I do it?
Gnamm
  • 633
  • 2
  • 8
  • 17
2
votes
4 answers

How to add "more" button to Tab Bar?

My iPhone app has a tab bar controller at the bottom of the view - and at the moment I have three buttons on it. However, I want to add more, but to do so I need to turn the last of the three buttons into a "More..." button, because otherwise the…
Graeme
  • 1,317
  • 4
  • 18
  • 27
2
votes
1 answer

Max number of UITabBar items allowed in iPhone SDK?

I currently have 8 UITabBar items, all of which are editable in the More view. My question is, what is the absolute maximum number of tab bar items allowed? I understand 5 is the most that can be visible at one time; I'm looking for the most you can…
dvs
  • 12,324
  • 6
  • 38
  • 45
2
votes
1 answer

How to change the color of unselected tab bar items in iOS 7?

Im trying to change the color of the unselected images in the tab bar, by default they are changed to gray, even if the image is another color. I already search this, but the answers are only for iOS 6 or below.
ElioMB
  • 189
  • 1
  • 1
  • 13
2
votes
2 answers

TabBarItem image not showing

I'm having issues getting images to show on the tab bar. I have a project in MonoTouch that uses a UITabBarController as the host of the app. For each tab item I have a UINavigationController. In ViewDidLoad of my UITabBarController…
Louis Sherwood
  • 137
  • 2
  • 14
2
votes
2 answers

Image not showing up in UITabBarItem

I am using UITabBar and UITabBarItem. I have an URL of an image. I set UITabBarItem's image to that image using URL. But image is not showing up. If I use any other image from my MacBook, it works. My URL is correct, which I verified by copy pasting…
Geek
  • 8,280
  • 17
  • 73
  • 137
2
votes
1 answer

Make UItabbar transparent

So I have two tabbar items in my tabbar and each of them has an image with a round corner, the rounded corner is at location where they meet, as you can see in the picture. I am trying to set the background image of the tabbar to be transparent…
Carmichael
  • 467
  • 1
  • 8
  • 21
2
votes
0 answers

tab bar xcode remove title of bar item with storyboards

I would to remove a title of the bar item and show only the images also in the space of the title (size of the image 60x60 not 30x30) its possibile only wih storyboards or IB ? thanks a lot
2
votes
1 answer

Increased height of one of the tab bar items

I have a tab-based app created, which has 5 tabs. I want the 3rd tab bar item to be of greater height than all other tabs. The size of this 3rd tab bar item will always remain greater than other tabs. How do I do it in a tab-based app? Is it…
iOSDev
  • 3,617
  • 10
  • 51
  • 91
2
votes
1 answer

How to change the [more] button text color in UITabBar?

I follow this answer change the bar items text color to white,but I have 6 tabbar items,I can't get the system button [more] item and change the text color. How to change this [more] button text color to white? thx. my code: for (UITabBarItem* item…
yellow
  • 702
  • 1
  • 10
  • 24
2
votes
1 answer

Change tab bar item badge from other ViewController

I have a two tab bar items at the bottom of my application. (Let's call the tab bar items Products & Cart) On Cart their is a badge item present. How can I change the badge item on Cart while I preform an action on the ViewController of…
Renzzs
  • 1,046
  • 2
  • 11
  • 20
2
votes
0 answers

Is there an easy way to retrieve a UITabBarItem by Tag?

The 'Tag' property of a UITabBarItem sounds like a useful thing, but in practice, how does one use it? According to the documentation: - (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag Parameters title The item's…
death_au
  • 1,282
  • 2
  • 20
  • 41