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
0
votes
2 answers

UITabBarItem with variable destination view

I have 4 tab bar items (the buttons at the bottom of the screen) and I need the last one to do display a different view depending on certain properties. If the user has a specific property, touching this tab bar item will move on to a…
TooManyEduardos
  • 4,206
  • 7
  • 35
  • 66
0
votes
1 answer

Update foreground color of selected image in UITabBarItem

I have changed the default blue color of some selected text with setTitleTextAttributes. However, the image still becomes blue when selected. How can I change this behavior?
Mando
  • 11,414
  • 17
  • 86
  • 167
0
votes
2 answers

tab bar item image is not change with use of storyboard

in my application i have to use tab bar.but the problem is my first view is homeviewcontroller and it contain no tab bar or tab bar controller.now when click on login it goes to first view controller and it contain tab bar. i am using story board…
0
votes
3 answers

How can I change a color of image and label on UITabBar on iOS 7.1?

How can I change a color of image and label on UITabBar on iOS 7.1? On iOS 7 I could make it by Tint property. But on iOS 7.1 it doesn't work.
Dmitry
  • 14,306
  • 23
  • 105
  • 189
0
votes
2 answers

TabBarItems for UITabBar

I have a UITabBar on a UIViewController, I have set the UITabBar delegate and this is how I set the UITabBar up inside my viewDidLoad: method // Load UITabBar for FindModels View & call tabBar delegates findModelsTabBar = [[UITabBar alloc]…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
1 answer

iOS 7 change tabBar selected icon

I've created a tabBar in storyboard and set a custom image. I want to use a different image for the "selected" state, I know I can't set that image using storyboard but how do I do it programmatically? I also want to change the icon tint colour in…
JwL
  • 53
  • 2
  • 7
0
votes
1 answer

Tabbar item image issue

I am adding images in tabbar. The iamge size is 49px. Adding is working fine. But the layout having an issue. all tabbar item images' top part is out of tabbar's frame, and there is ablank space down. How to fix this ? This is how I create Tabbar …
Nithin M Keloth
  • 1,595
  • 1
  • 20
  • 37
0
votes
1 answer

UITabBarItem image created in code doesn’t appear

I create the following View in code, the idea is to use it as an image in UITableViewCell and UITabBarItem: - (void)drawRect:(CGRect)rect { // Fill the background with white CGContextRef context = UIGraphicsGetCurrentContext(); UIColor…
nico9T
  • 2,496
  • 2
  • 26
  • 44
0
votes
1 answer

Trouble showing UITabBarItem.image correct size in iOS 7

I have created a UITabBarcontroller programatically as follows: UITabBarController *tbc = [[UITabBarController alloc] init]; [tbc setViewControllers:[NSArray arrayWithObjects:vc1,vc2,vc3,vc4,vc5,nil]]; which works ok. For each of the…
Tyler Durden
  • 575
  • 7
  • 23
0
votes
2 answers

Unable to access UITabBarItem(s) inside UITabBar

I have a TabBarController that contains 5 TabBarItems, i want to have a control over those items so i create a new class that extends UITabBarController and make it the delegate for the TabBarController then i bind the…
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
0
votes
1 answer

How to retrieve CGRect frame from UITabBarButton?

My goal is to display a UIPopover for each of my UITabBarbuttons when the app for launches as part of my tutorial... I'm doing the following: How do I extract the frame from UIView *tabView = [[appDelegate tabBarMutableArray] objectAtIndex:1];…
Paul S.
  • 1,342
  • 4
  • 22
  • 43
0
votes
1 answer

UITabBarItem Image misaligned

My app has tab bar. I'm trying to customize the tab bar item by changing it's image. I created an image with size 106x49. The image is being placed using this code: ((UITabBarItem*)[self.tabBarController.tabBar.items objectAtIndex:0]).image =…
HusseinB
  • 1,321
  • 1
  • 17
  • 41
0
votes
1 answer

Why is my UITabBarController empty?

I created a UITabBarController like this: InfoViewController *iVC = [[InfoViewController alloc] init]; self.infoViewController = iVC; // retain property UITabBarItem *tabBarItem = [[UITabBarItem alloc]…
openfrog
  • 40,201
  • 65
  • 225
  • 373
0
votes
1 answer

Add Images to items in the More Navigation Controller of the uitabbar controller

I'm surprised this hasn't been asked and answered before.. I searched for hours and couldn't find an answer.. I have a tabbarcontroller with 6 viewcontrollers. Because of this, the more tab is displayed and the other two viewcontrollers now reside…
sudo
  • 1,648
  • 1
  • 20
  • 22
0
votes
1 answer

Change non selected items color of UITabBar in iOS7

I'm using this code to change UITabBar color, its text color/font and the color of the selected item. [[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Light" size:10.0f], …
androniennn
  • 3,117
  • 11
  • 50
  • 107