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
1 answer

rightBarButtonItem image not showing up

Can anyone help me out understand what is wrong in my code . I am not getting it my code compiles fine without any errors but my image is not showing up.I am sure my image is present in Assests folder and I am giving the correct name of my images as…
Tushar Sharma
  • 2,839
  • 1
  • 16
  • 38
1
vote
2 answers

iPhone, UITabBarItem: Dynamically change image of a tab bar when app starts

When my app loads I want to change the image on one of the tabs based on a saved setting set by the user the last time they ran the app. I am able to change the image when the user clicks on the tab which executes that tab's viewcontroller's…
PeteC
  • 31
  • 1
  • 3
1
vote
1 answer

Adjust UITabBarItem Badge position?

I change badge position with this code: for tabBarButton in self.tabBar.subviews{ for badgeView in tabBarButton.subviews{ let className=NSStringFromClass(badgeView.classForCoder) if className ==…
merry_ejik
  • 491
  • 6
  • 8
1
vote
1 answer

Having trouble with the Tab bar background image

I would like to show the background image for the tab bar which is having vertical separator lines. I have this images in the following resolutions:- 1x - 320 x 49 2x - 640 x 98 3x - 960 x 147 The image sets correctly for iPhone 5 with the…
1
vote
3 answers

UITabBar – setItems:animated: Crashes

So I have a UITabView Controller that was created in interface builder. The title and image properties of UITabBarItem were set in IB. A Tab Bar Controller object is present in the xib and all necessary connections are made. I am able to call simple…
mosca1337
  • 2,409
  • 3
  • 24
  • 27
1
vote
1 answer

How to customize tintColor and resize UITabBarItem

The issues that I would like to change "Tintcolor" for each tabs. But the below code doesn't work at all. And I added the button image and want to resize it using "UIEdgeInsetsMake". But the button is resized weirdly whenever I touched the button. I…
Frozen Sea
  • 13
  • 4
1
vote
1 answer

View mess up when i add new tab bar item

I have view like in first picture When i add new tab bar item to the view, it will mess up like below picture (Second picture). I don't know what is the problem, how can i solve this? Thank You!
Emre Önder
  • 2,408
  • 2
  • 23
  • 73
1
vote
3 answers

How to arrange tabbar item at run time in TabBarcontroller?

I have TabBarcontroller with 5 viewcontroller "A", "B", "C", "D", "E". But i need to decide the order at runtime depends on API response. for ex. some time I need to show "A", "D", "C", "E", "B" i.e. in random order, OR sometime i need to show only…
New iOS Dev
  • 1,937
  • 7
  • 33
  • 67
1
vote
2 answers

How do we add action to Tab Bar item

I am using Tab Bar i.e. Bottom bar and have 5 tab bar items, i want to assign a method to each, so that i can navigate to other views on tab bar item click. I've been looking for some clues, but couldn't make it.
Shikha Sharma
  • 451
  • 1
  • 5
  • 25
1
vote
2 answers

Tab Bar Item won't show

Currently I have 1 tab view controller, with 3 menus: But when running, the bottom menu / image are like being cutted or didn't show perfectly like this: It should have 3 menus. Code: import UIKit class TabBarReimbursementViewController:…
Borom1r
  • 155
  • 1
  • 7
  • 18
1
vote
1 answer

UITabBarController duplicating the first UITabBarItem and nested tab bar title

I am using a UITabBarController with 3 tabs. The text of only the first tab is being duplicated. By using the view inspector, and inspecting the duplicated item, we can see that it is exactly the same object reference between the two tab bar…
FranticRock
  • 3,233
  • 1
  • 31
  • 56
1
vote
0 answers

Custom UITabBar shows a white line below UITabBarItem in iOS10 only

Since iOS10 has been release we have an issue with one of our project. The customised UITabBar shows a white line below the UITabBarItems, I have tried numerous ways to remove this line, including solutions from stack…
1
vote
0 answers

Making a UITabBarButton trigger a modal segue

I want to mimic Instagram's tabbar functionality, where the middle option acts as a button that triggers a modal slide up segue instead of switching views like a normal tabbar button. I don't know the correct way of doing this, but I'm trying to…
Tommy K
  • 1,759
  • 3
  • 28
  • 51
1
vote
0 answers

How to get rid of blink between switching Tab Bar Item

In my app I should use a several Tab Bar Item with one Controller. To approach this in my Second and Third Tab Bar Item Controllers I use self.tabBarController?.selectedIndex = 0. As you can see this solution generates blink effect... It's happens…
Roman Romanenko
  • 736
  • 9
  • 24
1
vote
0 answers

Unable to select UITabBarItem after changing its position in swift

I am trying UITabBar app in iPAD. But, I faced some challenges in UI. Required UI My Output I have tried to move this UITabBarItem by using, But, I unable to select the UITabBarItem. Kindly guide me, how to solve this ?
McDonal_11
  • 3,935
  • 6
  • 24
  • 55