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

Where do I implement the UITabBarControllerDelegate?

I have a tabBar that is implemented programmatically. I would like to be able to track if the user press a certain tabBar item (or button or whatever it's called). As far as I understand, this is done by inheriting from the…
0
votes
0 answers

Checking of edit mode condition on tap of another tab in tabbarcontroller in swift

I am new to iOS Development.I have some requirement . I want to check the particular condition when another tab is selected. Here is the part of UITabviewController delegate method code. func tabBarController(_ tabBarController:…
Noorul
  • 3,386
  • 3
  • 32
  • 54
0
votes
1 answer

UITabBarController tint color problem on iOS 13

When I select first item in tab bar, the selected tint colour doesn't change, but when I tap second time the same item, it works then. That only happen on the first tab bar item and it looks like tab bar is refreshing. Tapping every other item in…
0
votes
1 answer

UITabBarItem does not register click on the icon

I have four UITabBarItem's. Each has a label and custom icon. My AppDelegate uses the UITabBarDelegate protocol and every click on a tabbaritem is logged to the console so I can see what is happening. The only way to select a tabbaritem is to click…
Christoffer
  • 25,035
  • 18
  • 53
  • 77
0
votes
1 answer

Update Tab Item Badge after getting data (Swift)

I'd like to update a Badge on a Custom Tab Bar Item when I receive some data. I am able to update the badge on the initial viewDidLoad() but then when I try to call viewDidLoad again later with the data, my tab items are nil. Here is how I have set…
Louis Sankey
  • 481
  • 8
  • 26
0
votes
4 answers

how to add colored icon in ios swift?

I am trying to add an icon which is multicolored and when I added the icon as per in the tab bar, it is showing a single color blue, the actual colors of the icon are not visible? how should I add the colored icon in the tab bar?
user12180762
0
votes
1 answer

Switch TabBar Item from separate Navigation Controller

In my application I have TabBar Controller and Navigation Controller with one View Controller that are not connected to each other. I use TabBar Controller as root vc in my app, and other Navigation Controller as a side menu which slides in on top…
Taras Tomchuk
  • 331
  • 7
  • 19
0
votes
0 answers

some tabbar images do not show in the simulation

I have 5 different tabs on my tabbar and only 2/5 tabbar images show up, even though I downloaded them from the same source. I tried setting the rendering mode to always original func setupTabBar() { let homeController =…
Michiel.T
  • 11
  • 1
0
votes
0 answers

SWIFT how to manipulate a different navigation stack than what the user is currently being shown

TLDR: I need to manipulate a different navigation stack than what the user is currently on, so that when the different stack is shown, it's always on it's root view controller. I am working on a SWIFT e-commerce project where the user can at any…
0
votes
5 answers

Disable All buttons except Home in Tab Controller

Ive been searching and i cant seem to find out how to disable all tab bar items EXCEPT the home button from being used until a user logs in or creates and account
0
votes
1 answer

How to set tab badge from app delegate

I'm trying to set the tab badge number on launch when I receive a push or local notification. Accordingly, I'm trying to set this badge number from the Application Delegate. I can set the badge locally from the tab's view controller with…
SeniorShizzle
  • 984
  • 1
  • 11
  • 27
0
votes
1 answer

Swift Tabbar with a rounded hole in the middle

I am trying to achieve the following design in my app: As you can see, the tabbar has a raised center button. However, this is not the only thing as there should be a real hole in the tabbar so that it is transparent there. How can I create such a…
linus_hologram
  • 1,595
  • 13
  • 38
0
votes
3 answers

UITabBarItem image size in retina display

I have a TabBarController application that gets all the images from the web, including the icons for the tabBarController. What I want is that images look good when the device has retina display. This is what I am doing: Resizing down images…
Aklope
  • 1
  • 1
  • 1
0
votes
1 answer

UITabBarButton index getting changed while applying selected image

Currently, I am running with the problem while applying the selected image over UITabBarButton. When I am doing this it changes the hierarchy of UITabBarbutton within tabBar.items. Really don't have any idea why this is happening. Posting the code- …
iEinstein
  • 2,100
  • 1
  • 21
  • 32
0
votes
2 answers

How can I hide a UITabbarIcon?

I'm currently developing an iOS-App which will have 5 tabbar-icons. One of these should only be visible if you are allowed to see it. How can I hide this icon?
Abc
  • 55
  • 4