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
1
vote
0 answers

UItabbar becomes dull while setting images on it in iphone

I am creating an app which uses Tab bar controller. While I am setting images on it my images is looking little bit dull. I have referred stack link - weird UITabBar color inconsistency in iOS7 and also follows as link shows an answer by setting…
1
vote
1 answer

How to remove the selectionIndicatorImage for the middle UITabBarItem

I'm using the custom UITabBarItem image for the middle item, so I have to make an UIImage for selectionIndicatorImage. According to this answer Same question as mine I've made the code. Code UIStoryboard *iPhoneSB = [UIStoryboard…
Artem Z.
  • 1,243
  • 2
  • 14
  • 36
1
vote
1 answer

Same view for two tab items in a tab bar controller

My app has two tabs that displays different information. I want it such that only the content in the table view change when i tap on different tabs and the rest all remain the same. i.e. a common navigation controller to both the tabs. This is…
1
vote
0 answers

Cannot update band tab bar item value

Hallo I have this code into my appDelegate: - (void)applicationDidBecomeActive:(UIApplication *)application { UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UITabBarController *myTabBarController = [storyboard…
Blasco73
  • 2,980
  • 2
  • 24
  • 30
1
vote
1 answer

UITabBar badge position in iOS7

Is there anyway to position UITabBar badge? It looks little displaced in iOS7. In iOS7, it is displaced towards next tab bar item. I have used a custom tab bar item. UINavigationController *navController = [self.viewControllers objectAtIndex:…
1
vote
1 answer

What size UIToolbarbutton's icon should be?

I'm trying to create a tool bar like below image. Surely I have different buttons and also different icons. But the question is that what size should be the icons that I will use for this buttons?
Husein Behboudi Rad
  • 5,434
  • 11
  • 57
  • 115
1
vote
1 answer

tabbar icons stretching in UITabbar

I have tabbar icon size of 30x30. When i set these icons to tabbar, images are stretching for iphone4 & iphone5 screen sizes. Why? UINavigationController *hndWriteNav = [[UINavigationController alloc] initWithRootViewController:hndWrite]; …
1
vote
2 answers

TabBar highlight not displayed in iOS 7

In iOS 6.x when tab is selected, it is highlighted as shown in below image (last tab is selected and thus highlighted). But in iOS 7 it does not display this highlight as shown in below image. When tab has texts there is no problem as I can set…
Geek
  • 8,280
  • 17
  • 73
  • 137
1
vote
3 answers

Displaying images in UITabBarController - UPDATED

I am trying to put an image in my UI. the Controllers present as the UITabBarItem are UINavigationControllers. When i am trying to put images, on them, the result is not looking good. I am getting only half images, and the images show no color. the…
Shradha
  • 991
  • 3
  • 13
  • 38
1
vote
0 answers

Updating the badge number in a UITabBarItem

I'm developing a iOS app that manage Push Notifications. When a push comes up, the app badge is looking good, but where I'm having trouble is on the badges that appear inside the app. With inside the app i mean in the UITabBarItems that the app…
FabKremer
  • 2,149
  • 2
  • 17
  • 29
1
vote
1 answer

Tab bar image not displayed

I have this problem. I have a tabbar created in appDelegate: RootViewController *controller = [[RootViewController alloc] initWithNibName:@"RootView" bundle:nil]; UINavigationController *rootNavigationController = [[UINavigationController alloc]…
Anna565
  • 735
  • 2
  • 10
  • 21
1
vote
1 answer

Nav + Tabs in Ruby Motion - not showing tabbar titles upon load

I'm trying to get a basic Nav + Tab iPhone app up with Ruby Motion. Love the product (BTW!). The problem is that after build you don't see the tabbar titles. Appreciate any help. First, I set the title upon init in controller…
1
vote
1 answer

Separate tint colors for a tab bar on iOS 7?

I have an application which uses a tab bar. I want each tab to use a different tint color. Is there a way to have each tabBarItem be selected with a different color? Thanks!
user1941966
  • 449
  • 5
  • 18
1
vote
5 answers

UITabBar acts strange in iOS 7, how to fix it?

[[UITabBar appearance] setTintColor:[UIColor redColor]]; // for unselected items that are red [[UITabBar appearance] setSelectedImageTintColor:[UIColor greenColor]]; // for selected items that are green Why is this code not working in iOS 7?…
Jesper Martensson
  • 1,238
  • 3
  • 18
  • 44
1
vote
1 answer

How to set custom title attributes for UITabBarItem

How i can set custom font for every UITabBarItem. All i found is [[UITabBarItem appearance] setTitleTextAttributes:...] But it sets the same attributes for all tabs. I want to set attributes for every UITabBarItem and it must be custom. This…
dpart
  • 157
  • 2
  • 13