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

Change UI tab bar icons display color

Change UITabBar icons display color. Here are the screenshots, Tab bar icons display color is gray. I want to change the UI tab bar icons into white. How can I implement this? I tried already in storyboard "User define runtime attributes" set key…
3
votes
1 answer

UITabBarItem Selected Tab Background: Custom?

Would like to set a custom background for my selected tabs, thus far, subclassing is they way I'm customizing the UITAbBar/UITabBarItem. The question is: Does anybody know (or know where I could find ) what the property is that sets the…
PetePete
  • 31
  • 3
3
votes
2 answers

How to change background image of tab bar item in ios?

I want to change the background of tab bar item with some image . Can anyone help me out in this regard? Here is what i wanted : Also i need to know what should be the size of background image . My images are getting out of bound
warzone_fz
  • 472
  • 1
  • 9
  • 24
3
votes
1 answer

UITabBarItem action not working

I am trying to create a sort of action bar so I restored to using a tab bar because it is clean and is less of a hassle. All 5 of the tabs will be doing some kind of action but with the current code I have it is not doing anything and I am unsure…
Trenton Tyler
  • 534
  • 1
  • 7
  • 20
3
votes
1 answer

More Tab icons colour in iOS 8 and later

Background: I am working on an application with multiple tabs, so there is a more tab on the right. Issue: In iOS 7, the colour of icons in more tab was grey, which is Apple's default. But from iOS 8 and later, the colour of those icons are changed…
Aneeq Anwar
  • 1,282
  • 7
  • 20
3
votes
2 answers

How to change the TabBarItem background color

I'm trying to change the background of a TabBarItem or to make a whole Image which take all the space. Like the example below : Do You have an Idea how to do that in swift
Stranger B.
  • 9,004
  • 21
  • 71
  • 108
3
votes
2 answers

How to design UIButton Like UITabBarItem in iOS?

I have to place 6 buttons in the bottom of particular screens like UITabBar. I have placed UIButton with Image and Text but, am not able to move the image on top of the button with centre alignment and place the button text in below of the image…
Yuvaraj.M
  • 9,741
  • 16
  • 71
  • 100
3
votes
3 answers

Changing the unselected color of a UITabBar Item iOS 9

override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view.' UITabBar.appearance().tintColor = UIColor.whiteColor() UITabBar.appearance().selectedImageTintColor =…
stumped
  • 3,235
  • 7
  • 43
  • 76
3
votes
1 answer

UITabBarItem memory leak

I have an issue with this code in iOS9, this codes causes a memory leak each time it is called. I found this leak in instruments and the iOS function that seems to be leaking is [UITabBarButton initWithImage:selectedImage:label:withInsets:]. …
Matthew
  • 161
  • 9
3
votes
1 answer

Easiest way to add TabBar to an existing application

Can someone advise if there is a quick way to convert an existing iPhone app to a tab bar app? I can create a new storyboard using TabBar controller, however I think there must be a way to add UITabBar to an existing controller. Any help is…
Kira
  • 387
  • 1
  • 3
  • 8
3
votes
4 answers

Custom UITabBar unselected item's color

I am trying to change the default grey colour of the unselected UITabBarItems. I have managed to change the text but not the image. TabBar.appearance().barTintColor = UIColor(red: 86.0/255.0, green: 132.0/255.0, blue: 208.0/255.0, alpha: 1.0) var…
PoolHallJunkie
  • 1,345
  • 14
  • 33
3
votes
3 answers

Tab bar item Image doesnt show - xcode 6

This is beginning to frustrate me but when i try to change my tab bar item images from those default squares or circle icons to my custom made images all i get are shadows/outline of my image..it doesn't actually show my image. I don't think image…
cc_hey
  • 63
  • 1
  • 11
3
votes
1 answer

iOS 8 Tab bar icon color bug

I initialise my tab bar icons on my storyboard with my custom images. When the tab bar appears on the display, it shows my images with a grey color (which is not the original color of the image) Once i touch them, the original color appears!! I've…
MarBVI
  • 811
  • 2
  • 12
  • 34
3
votes
2 answers

Increment tab bar badge w/ UIAlertAction swift?

@IBAction func addToCart(sender: AnyObject) { let itemObjectTitle = itemObject.valueForKey("itemDescription") as! String let alertController = UIAlertController(title: "Add \(itemObjectTitle) to cart?", message: "", preferredStyle: .Alert) …
Mike
  • 85
  • 1
  • 9
3
votes
4 answers

Can I handle the double tap in UITabbarController

I need to handle the double tap action to get back from a navigation path represented with a custom view. Usually the double tap dismisses the nested topmost controller in the navigation controller's stack. I'd like to handle this action and do…
Vladimír Slavík
  • 1,727
  • 1
  • 21
  • 31