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

Selecting tabBarItem causes title to disappear

Like a title, i have a view build with IB. When the app are lunched all work fine, but when i select a tab bar item the title disappear! Any idea? sory for my bad english, i'm italian :D UPDATE: the title of the tabBarItem is taked by the…
Kazzar
  • 1,432
  • 1
  • 11
  • 9
2
votes
2 answers

How to set Title for UITabBarItem without changing tint color

When I change the title of a UITabBarItem in a UITabBar programmatically from a UIViewController in another tab, the title changes correctly, but the image of the UITabBarItem changes its color to the tintColor or the tabbar. Here is what is looks…
The Lone Coder
  • 3,062
  • 4
  • 20
  • 35
2
votes
2 answers

IOS-Swift, CarbonKit when hit back, the Icons still stayed at pager for a while, how to make them disappear immediately

I have successfully implemented Carbon Kit scrollable TabBar with Images as icons. They problem I have is when I hit back. The icons will remain at the page for a while before disappearing. Is there a way to make them disappear immediately. If I hit…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
2
votes
2 answers

IOS : Tabbar item click again and again it is double Tab bar button item size

I implemented tab bar with custom icon size.i find many solution from stack-overflow but i didn't getting any perfect solution for this issue. Issue : when i click tabbar item again and again it's size double every time. and after click other tab…
Dixit Akabari
  • 2,419
  • 13
  • 26
2
votes
1 answer

How to tell if TabBarItem is already Selected

So I have a viewController with a tableView that is being presented from a tabBarController. If the user taps the tabBarItem for the view that is already being shown, I want the tableView to scroll to the top. I have set the…
Matt Bart
  • 809
  • 1
  • 7
  • 26
2
votes
1 answer

Add Tab Bar to all screens even if that screen isn't immediately accessible by tab button

I have a tab bar in my app that has 3 items leading to 3 separate view controllers. However, within one of those pages I have a button transition to another view controller (click on the button and it takes you to another page), and the tab on the…
Andy Lebowitz
  • 1,471
  • 2
  • 16
  • 23
2
votes
5 answers

UITabBar Icons not appearing correctly

I'm working on a iOS app. I have a tabbar with 5 View Controllers. All the icons are set in the Storyboard: When I launch the app, 2 are messed up. The Home (first TabBar View Controller) is practically missing and the last one (Messages) is not…
Dani
  • 3,427
  • 3
  • 28
  • 54
2
votes
1 answer

UIBarButtonItem not firing up selector action

I have a UIBarButtonItem: let addProdButton = UIBarButtonItem(title: "+", style: UIBarButtonItemStyle.plain, target: self, action: #selector(AddProduct)) And the action it is connected to: @objc func AddProduct() { …
Ofri
  • 289
  • 5
  • 17
2
votes
3 answers

Two color items on Tab Bar, Swift

Is is possible to set an item with two colors on the tab bar? (I'm a beginner in swift) What I want to achieve: I want to have something-like a white background for each item in both active and inactive states. -> Example of what I want What I…
Ryoko
  • 75
  • 6
2
votes
0 answers

Set custom UIAccessibility on UITabBarItem

I'm programatically setting accessibility on all my UITabBarItem's (label, value & hint) but when I test the accessibility - it correctly see's the tab, however it's relaying the system default (not what I have set in my accessibility…
MrChrisBarker
  • 141
  • 2
  • 11
2
votes
1 answer

How to change TabBarItem image and title-issue

I'm working with tabBar Based application with navigation controller. In my application I want to change the tabBarItem image and title. At the time of clicking the pariticular tabBarItem the control goes to viewWillAppear method of that particular…
kanmani
  • 671
  • 1
  • 10
  • 28
2
votes
1 answer

Check for warnings of deprecation and new methods

Recently I submitted my app on AppStore with a method setting badgecolor of tabbaritem. [[[AppDelegate globalDelegate].tabBarController viewControllers] objectAtIndex:1].tabBarItem.badgeColor = kTabBarBadgeColor; This badgeColor came in iOS 10…
Swati
  • 1,417
  • 1
  • 15
  • 35
2
votes
1 answer

Test tabbar badge via Xcode UI XCTests in iOS

How to check that tabbar badge (tabBarItem.badgeValue) contains correct number in XCTests? I can see target tabbar button in Accessibility Inspector, but badge element isn't inspectable.
brigadir
  • 6,874
  • 6
  • 46
  • 81
2
votes
2 answers

Unable to see controller added to UITabBar programmatically swift

I added 2 tabBar items from storyboard and one UITabBarItem - Menu programmatically. I am successfully able to open the controllers corresponding to tabBarItems which I created using storyboard. However, when I click on "Menu" a blank black screen…
A_G
  • 2,260
  • 3
  • 23
  • 56
2
votes
1 answer

adding UITabBarItems to the UITabBar

I hope anyone can explane me how to do this: I have a TabBar and two TabBarItems, how can I attatch the Items to the TabBar. I am not doing this via IB because the TabBar only fits have of the screen because the items should be on the left…
Frank
  • 155
  • 3
  • 13