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

How to add separator between tabbar icon

How to add a separator line between each icon for TabBar. //TabbarViewController.h #import @interface TabBarViewController : UITabBarController { } @end //TabbarViewController.m -…
KkMIW
  • 1,092
  • 1
  • 17
  • 27
0
votes
0 answers

Update badgeValue from AppDelegate

I was able to access without problem to a particular "tab" from appDelegate with this code: UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UINavigationController *myView = [mainStoryBoard…
Blasco73
  • 2,980
  • 2
  • 24
  • 30
0
votes
3 answers

How to change text color for tab bar button in storyboard ios8

I changed tab bar background in Bar Tint field and want to change text colour for tab bar button. By default is grey and blue. I try to change field Tint in section View, but it doesn't help.
Walter West
  • 829
  • 3
  • 12
  • 31
0
votes
2 answers

how to removed dimmed effect of disabled TabBarItem IOS

My application is a classic TabBar Application. I would like to disable the currently selected TabBarItem to prevent the user from taping on the same item again (this causes a small graphic glitch). To do that, I disable the currently selected…
Fifo
  • 25
  • 2
0
votes
1 answer

how to hide previous uiview from uitabbarcontroller when switching to another tabbaritem

I have two tabbars upper and bottom, when I click on tabbaritem UIView show but when I click to another tabbar item the previous view still remain in controller. The code is - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item { …
Farid
  • 44
  • 1
  • 12
0
votes
1 answer

Receiving NSException when trying to change UITabBar icon

I have a UINavigationController that displays a UITabBarController. I am trying to add custom icons for the tab bars. I have placed the following code in AppDelegate.m didFinishLaunchingWithOptions: UITabBarController *tabBarController =…
0
votes
1 answer

Customizing UIBarButtonItem apperance with multiple UINavigationBar views

I'm using this: [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationController class], nil] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: color ,NSForegroundColorAttributeName, …
Grzegorz Krukowski
  • 18,081
  • 5
  • 50
  • 71
0
votes
2 answers

How to change color of UITabBarItem's text

I already know how to change the colour of an image of a UITabBarItem (from this answer: https://stackoverflow.com/a/25062766/887353), but how can I change the colour of its text? I haven't figured it out. Also, how can I change the colour of the…
tester
  • 3,977
  • 5
  • 39
  • 59
0
votes
2 answers

Set the background color of UITabBarItem

Is there an easy way to set the background color of an individual UITabBarItem? In my scenario, I would like to use a different image for each of my 2 barItems and then set the background of my 2 barItems to a different background color each- say…
Khaled Barazi
  • 8,681
  • 6
  • 42
  • 62
0
votes
1 answer

ios in-app purchase related crash

I have a non consumable product to remove ads from my app, via in-app purchase. It works well sometimes, and if I close the app and open again, my code for detecting in NSDefaults if PRO version was purchased works fine. The things is, upon…
0
votes
1 answer

UITabBarItem Image doesn't show up

I'm using storyboard and a TabBarNavigation Controller. The View Controller of the tabs are embedded in NavigationController. I didn't set the image of the first TabBarItem in the storyboard. The png files don't show up. Only a gray square is…
Joe
  • 207
  • 1
  • 2
  • 9
0
votes
1 answer

Custom tabBarItem images not appearing

I've subclassed UITabBarController in order to customize the tabBarItem titles and images. With the code below, the titles show up correctly, but xbutton.png doesn't appear. How can I correctly customize the images? - (void)viewDidLoad { [super…
Ghobs
  • 839
  • 2
  • 14
  • 32
0
votes
2 answers

Auto-update UITabBar item badge value

In my app there UITabBar items, I want the badge value of the tab bar item to be updated every X seconds, but I can't quite figure it out... Here is my method for updating: -(void)updateTabBadgeValue{ NSLog(@"tick"); if([PFUser…
shreyashirday
  • 892
  • 1
  • 10
  • 34
0
votes
2 answers

Are there specific settings I need to use when preparing images for use with custom UITabBarItem's?

I'm using free images off of iconfinder and they work fine. However I couldn't find a specific image so had to find the image elsewhere. Anyway the image was an incorrect size so I resized it in photoshop. I added the image to the images.xcassets…
LondonGuy
  • 10,778
  • 11
  • 79
  • 151
0
votes
1 answer

Setting a view controller in a tab bar controller

My app has tab bar controller that loads 3 view controllers in its viewDidLoad method. - (void)viewDidLoad { [super viewDidLoad]; ... [self setViewControllers:@[firstViewController, secondViewController, …