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

iOS - Set UITabBar Icons

I've checked a couple of solutions, saw you can set it in the storyboard but to set the icon you have to set it as a default identifier, and doing so removes the title and sets the default one, if you set the title to your own title it reverts to…
8vius
  • 5,786
  • 14
  • 74
  • 136
2
votes
5 answers

How to set title to tab bar item programatically?

I try this but it not works I can not see tab bar item..How can I solve this problem? Thanks for your help. - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. myTabBarController =…
Hacer Akac
  • 175
  • 1
  • 7
  • 18
2
votes
0 answers

How to set UITabBarItem.badgevalue when i use storyboard to show multi view?

I chose "tabbed Application" to create one project which has four tabbaritems. And also, i choose "using storyboard". Now, i have one question, how can i show the badge value on tabbaritem if i reload data in the tableview. Any suggestions? Thanks.
Andy Yi
  • 43
  • 4
2
votes
1 answer

Set accessibility badge on a tabbarItem

I have a tabbar application. If there is a badge on a certain tab VoiceOver pronounces N items. I'd like to make it pronounce N messages. How do I do that?
yulia_samoylova
  • 51
  • 1
  • 1
  • 3
2
votes
1 answer

How to: Get order of tabs, save into NSUserDefaults then retrieve

I have a default UITabBarApplication with default views and tabs... etc. I have eight tabs that have the customizable option, so users can reorder tabs. How do I get the order of the tabs, save that into NSUserDefaults and retrieve it when the app…
2
votes
7 answers

Changing width of UITabbarItems and margins between them in iPad app

Is it possible to change the width of UITabbarItem in UITabbar and margins between each UITabbarItem for iPad Application? The problem is that standard margins are too large for my layout - client want tabs to be more compact :/ Or should I mess…
WASD42
  • 2,352
  • 6
  • 27
  • 41
2
votes
4 answers

Is there a way to set something like adjustsfontsizetofitwidth on UITabBarItem

Trying to get my app accessible for all users and I stumbled upon an issue when creating the items for the TabBar and would love to have a way of fixing it. I got something like this in my project: func setupTabBarItems(tabName: String, tabImage:…
2
votes
3 answers

uitabbar and uitabbaritem

I am trying to add UITabBarItems to a UITabBar not to a tabbar controller. Here is what I tried to do. It is always crashing when I am calling setItems. Can any please point out whats wrong. My_Accounts *my_AccountsVC = [[My_Accounts alloc]…
pa12
  • 1,493
  • 4
  • 19
  • 40
2
votes
2 answers

Why does gif Image In UITabBarItem on iOS 13 show blue color?

Why does this .gif Image In UItabbarItem on iOS 13 show blue color? tabBarItem.selectedImage is .gif image. viewController.tabBarItem.selectedImage = gifImage. The gif image on iOS 13 looks blue color. (Maybe is iOS image default render color) The…
jiexishede
  • 2,473
  • 6
  • 38
  • 54
2
votes
1 answer

How can I change a UITabBarItem title to the title from another UITabBarItem?

I want to change the title of UITabBarItem 1 to that of UITabBarItem 4. Both are in the same UITabBarController. How do I go about changing these titles?
Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83
2
votes
2 answers

How to get imageview of tabBarItem in iOS 13 and above?

I need the imageView of tabBarItem to animate it while selecting. I was able to get the imageView before iOS 13 like this: tabItem.subviews.flatMap { $0 as? UIImageView }.first But now the subView only contains the UIVisualEffectView as its only…
Arun K
  • 810
  • 2
  • 12
  • 33
2
votes
1 answer

How to chage the Color of text in UITabBarItem?

In UITabBarItem how to change the color of text..By default the text is appearing in whiteColor. I want to change to black, how to do it?
Cathy
  • 797
  • 2
  • 14
  • 25
2
votes
1 answer

Raised UITabBarItem like DailyBooth

I came across this: http://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/, but I don't really know how to implement it into my app. I have the UITabBarController as my app delegate, but I don't know how I can add a raised button item like…
max_
  • 24,076
  • 39
  • 122
  • 211
2
votes
0 answers

Getting the title of a UITabBarItem

I'd like to get the title of a UITabBarItem created with initWithTabBarSystemItem: UITabBarItem *item = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemTopRated tag:1]; However, sending title to it, always returns nil. Is there a…
cfischer
  • 24,452
  • 37
  • 131
  • 214
2
votes
1 answer

UITabBar selected tab doesn't change tint color on launch

I have subclassed UITabBarController to allow for some customization specific to my app. It is the root view controller of my UIWindow and displays itself correctly on launch, and even shows the correct tab's view hierarchy as well. The problem is…
FerrousGuy
  • 138
  • 1
  • 9