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

How to make a UITabBar with multi-line itemTitle in swift 4

currently I'm working in an iOS project in swift. In my project, I have UITabBarController, which contains five items. Now it is working fine no issue. But now I need to change the title to a bigger title. But after changing the title, the item…
Hilaj S L
  • 1,936
  • 2
  • 19
  • 31
0
votes
1 answer

Updating tabBarItem more than once (three20)

I'm trying to update the tabBarItem more than once, but I can't get it to work. I've used theese methods: self.tabBarItem = [[[UITabBarItem alloc] initWithTitle:@"New title" image:image tag:0] autorelease]; and: self.tabBarItem.title = @"New…
Stefan Edberg
  • 231
  • 2
  • 4
  • 15
0
votes
1 answer

Swift Change UITabBarItem image and tint color dynamically

I have a form that should be completed from the user, which is split between 3 UITabBarItems in 1 UITabBarController. I would like to change UITabBarItem's image dynamically. For example, the user is on the first step and right after he completes…
user7298209
0
votes
1 answer

iPhone XR iOS 12 UITabBarItem title overlap on top of the picture

The issue only happens on the iPhone XR, it works well on all other iPhone devices. And I used the original UITabBar component, not the customized one tabBarItem.titlePositionAdjustment.vertical = -10.0 tabBarItem.selectedImage = UIImage(named:…
Jin
  • 665
  • 1
  • 7
  • 15
0
votes
1 answer

TabBar Badge Events and changing

I have a tabbar, with a default badge count of 6. When a user changes the value of a button on the tab view, I would like the badge to adjust. -1 or +1. All the buttons are set to red, if the user changes the value to green, then the badge goes down…
0
votes
2 answers

How to change tabBar item title by using button click from child viewController

I have UITabBarController using storyboard and I custom it by another UITabBarController class in order to perform some changes by requirement of my app. For my UITabBarController has 4 child viewControllers. And my first child view I implemented…
Visal Sambo
  • 1,270
  • 1
  • 19
  • 33
0
votes
1 answer

Unable to get tab items in a common function when called from UITabBarController

I've a common function in UIViewController extension. I'm calling this function from tab bar controller and view controller. This works when called from view controller but doesn't work when called from tab bar controller. Control goes to else…
Dan
  • 475
  • 9
  • 26
0
votes
1 answer

Override properties for Custom TabBar?

I have a custom Tab Bar class. It is shown below. In main.storyboard, I set the class of my tab bar to be CustomTabBar: class CustomTabBar: UITabBar { override var items: [UITabBarItem]? //[This line returns an error] //…
Everett
  • 387
  • 1
  • 4
  • 17
0
votes
3 answers

Change title on "More" tab

Is there any way to change title on "More" tab (text on uitabbaritem)?
TermiT
  • 144
  • 1
  • 8
0
votes
1 answer

how to change UITabBarItem's Title dynamically

I have a TabBarController in my App, and the 2nd item should have title Login or Profile depending on whether the user is logged in or not. in TabBarController: import UIKit class TabNavigationBarVC: UITabBarController, UITabBarControllerDelegate…
nastassia
  • 807
  • 1
  • 12
  • 31
0
votes
1 answer

iPhone UITabBarController - Hard to click tab items

I'm having a really strange issue with my application that uses the UITabBarController. First, I'm creating the tab bar programmatically and not using NIBs, ala: tabBarController = [[UITabBarController alloc] init]; NSMutableArray…
0
votes
1 answer

Adjust shading of UITabBarItem

I have a set of white images that I am currently using as the images for UITabBarItems in a UITabBar. These images are shaded automatically, and I would like to adjust this shading so that the icons do not appear as dark as they do by default on the…
John
  • 10,839
  • 8
  • 26
  • 31
0
votes
2 answers

Tab Bar Controller interfering with navigation bar

I am using a Tab Bar Controller with 4 navigation controllers further attached to it,Before starting the project I made a demo and it was working fine. Now the problem is, 1.First cell of tableview is underlapping navigation bar and the navigation…
0
votes
1 answer

Best way to disable ordering for a particular tab bar item

I have a UITabBarController setup and everything is working as intended. However, I also have enough items to allow for a "More" tab to display. When I "Edit" the items, I can replace all 4 tab items, but, but I'd like to make the first item not…
Mavro
  • 571
  • 8
  • 19
0
votes
2 answers

Problem to set a custom image to TabBarItem

I've a image 30x30 and I want set like TabBarItem in my TabBar. But when I set the result is this: The large blue square appears instead my image.
Augusto
  • 3,825
  • 9
  • 45
  • 93