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

iOS: Tab bar item title before the tab is selected

In iOS 9, the view controller that is displayed in a tab is responsible for it's tabBarItem. But a tab bar controller only loads the view controllers for each tab as they are needed. So initially, it only loads the view controller for tab 1 (if the…
RyJ
  • 3,995
  • 6
  • 34
  • 54
0
votes
2 answers

How to change only the middle TabBarItem background color?

I want to change the background color of a middle TabBarItem. In this image home is selected and middle tab is not selected.
Ajay
  • 1
  • 1
0
votes
1 answer

How can i call the same ViewController from different TabBar items?

I've developed a ViewController that shows different data according to the input parameter. I would like to use a tabBar interface and call the same ViewController from different tabs by passing them to different parameters. Can I do this? I get…
Cris
  • 12,124
  • 27
  • 92
  • 159
0
votes
1 answer

UICollectionView doesn't work when is in tab bar item

This is my first question here so sorry if I'm not clear. I have 3 colletionviews inside a view. Each collectionview cell has a label inside, this view is a tabbar item, when i delete the relashionship with tabbar, my collectionview work perfectly,…
0
votes
1 answer

Determining which UIViewController subclass that a UITabBar Item belongs to

I have a UITabBarController instansiated in my appDelegate, but I need a way to know when the user presses the different tab bar items (buttons on the tab bar). -UITabBarDelegate protocol to the rescue (with the required…
maralbjo
  • 963
  • 1
  • 10
  • 16
0
votes
2 answers

Ios Swift : Displaying Navigation Bar in custom Tabbar

I am trying to create a custom tab bar to place it on top of the screen using below code, programmatically. But the problem is, i am not able to get a navigation bar on top of the tabbar to go back to previous screen. kindly help me. override func…
0
votes
1 answer

Phonegap, phonegap build and tabbar

I have been working on a project in phonegap that requires an iOS tab bar at the bottom. I haven't been able to find a working plugin so with the little knowledge I have in objective C, I took this one and modified it so it works with what we need:…
0
votes
1 answer

Swift Missing tabbaritem image

I got a problem with a UITabBarController. When i load a uitabbarcontroller with this piece of code: let vc = self.storyboard!.instantiateViewControllerWithIdentifier("tabBarViewController") as! TabBarViewController self.presentViewController(vc,…
Pklaas
  • 23
  • 5
0
votes
0 answers

UITabBarController has a truncated badge

I get the behavior from the picture below. Basically the badge from the second tab it's under the third UITabBarItem image. The image from third tab it's composed from the camera icon and the green background. I am assigning an image…
Meeshoo
  • 129
  • 11
0
votes
1 answer

IOS Swift Programmatic UITabBar

I am attempting creation and use of a UITabBar in IOS. My code generates a UITabBar but when I click on a tab it crashes with error - (main thread) "Thread 1: EXC_BAD_ACCESS (code=1, address=0x18)" Here is the code, which is called in the view…
J-Dizzle
  • 4,861
  • 4
  • 40
  • 50
0
votes
0 answers

why uitabbaritem image does not show at first time?

I have create 4 items on uitabbar, all the images is 32 * 32 px, 150dpi. when i run it, only the first icon is appear, the others are disappear. but when i click the others or wait about 20 seconds they are appear. and i found when i set the…
Diego Peng
  • 79
  • 7
0
votes
1 answer

Sizing for UITabBar images?

Looking at this https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html Does that mean my image sizes should be 25, 50, and 75? What would go into the 1x, 2x, and 3x then?
stumped
  • 3,235
  • 7
  • 43
  • 76
0
votes
2 answers

Changing UITabBarItem's Tint Color in iOS 9?

I can't seem to change the tint color for UITabBarItem's in iOS 9. I'm using objective-c and have tried using titleTextAttributes programmatically, and runtime attributes in storyboard as well. I've read through the documentation, but can't seem to…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
0
votes
0 answers

Swift : UITabBarItem custom image problems

I am trying to implement a custom TabBar with unselected and selected images. I used a custom UITabBarItem and used my images. the first result was this after using Image Inset +6 Top -6 Bottom.: but left/right TabBarItems are kinda over each…
PoolHallJunkie
  • 1,345
  • 14
  • 33
0
votes
2 answers

why when I taped on third tabbaritem, third tabbaritem and fourth item exchange their position?

I customed a UITabBar. Add a button to center of UITabBar. tabbar have 4 tabbaritems and a button. But when I tap on the third tabbaritem, its position changed to the fourth item's position. Third tabbaritem and fourth item exchange their position.…
rose
  • 241
  • 5
  • 16