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

UITabBarController resets tab titles color for tabs after presenting new controller

class MainTabBarController: UITabBarController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) …
Yura Buyaroff
  • 1,718
  • 3
  • 18
  • 31
1
vote
2 answers

Remove a tab from a tabGroup's navigation without removing it from the tabGroup?

I'm using Appcelerator Titanium to build an iPhone app. I currently have a tabGroup control that links to the major sections of the app, including the home screen. What I'd like to do is remove the "Home" tab only from the navigation, without…
Shauna
  • 9,495
  • 2
  • 37
  • 54
1
vote
0 answers

how to Give a selected TabBar a Gradient color?

I tried to subclass the UITabBar and applied a Gradient color but the code i used added the color to the whole tab bar section Code Used: class TabViewController : UITabBarController { let gradientlayer = CAGradientLayer() override…
1
vote
2 answers

How to detect when pressing down on UIBarButtonItem?

I want to implement a scale animation when the user presses down on a UITabBarItem. How can I detect when a tabBarItem in a tabBar is being pressed down? My thinking so far is that perhaps there is a method in the UITabBarControllerDelegate? I…
user13255207
1
vote
1 answer

TabBar Issue in LandScapeMode

I Created one Demo App For TabBar, in that i took one .xib and in that i added one UITabBar, and i added two UITabBarItem. And When i am run the application in portrait mode it is working fine and design looks good. in portrait mode design look…
Sapana Ranipa
  • 889
  • 7
  • 20
1
vote
1 answer

UITabBarItem Title Text Not Align Centrally, When We Set Device in Landscape Mode in iOS13

I am implementing TabBar Dynamically in to my Objective-C iOS Application. In that, All TabBarItem Title Showing properly in Portrait mode, But when I am rotating device in Landscape mode that time TabBarItem Title position not showing…
Sapana Ranipa
  • 889
  • 7
  • 20
1
vote
0 answers

Double tap on UITabbarItem to reload Viewcontroller/UITableView

I'm using UITabbarController in my project. All viewControllers are loading properly and the navigation from parentViewController in UITabbarController to a childViewController and then back to parentViewController when tabbaritem is tapped is…
Joe
  • 173
  • 1
  • 15
1
vote
0 answers

Custom Tab bar item with system image

I have a tab bar item with a custom style, and I'd like to use a system image with it. The image dropdown in Interface Builder lets me select from a number of images, but only those from "Project" actually show up. This has been asked before, and…
alekop
  • 2,838
  • 2
  • 29
  • 47
1
vote
3 answers

How to change background color for tab in tvOS 13?

TvOS 13. I have a UITabBarController with tabs. And can customize almost everything except this obvious thing: focused tab's background. It's always white. Guide tells Specify tints for selected and unselected items I tried: view.backgroundColor…
Nike Kov
  • 12,630
  • 8
  • 75
  • 122
1
vote
2 answers

Tab bar item image higher than the other images on tab bar

In my tab bar, one of the tab bar items is higher than the others. See screenshot. I tried using other images, and using system images, deleting the view and re-adding it. Every time this one item is higher than the others. What can I do to fix it?
Evan C
  • 79
  • 6
1
vote
0 answers

Green UITabBarItem is unexpectedly gray when app is loaded

I have a custom UITabBar and I'm trying to customise the UITabBarItem. I have selected two sets of images for selected and unselected states of the two bar items. The selected images are plain green, the unselected ones are clear with green borders.…
1
vote
2 answers

UITabBarItem Image Inset issue in Swift

I am using UITabBarController , i am setting UITabBarItem imageInset . But when is am selecting same , Tab Again and again , the image size in increasing . see here : Tab Bar issue video Have anyone faced this issue , please help
Dhiru
  • 3,040
  • 3
  • 25
  • 69
1
vote
1 answer

Customize more button of tabbar

I am stuck in a situation where I want to change the text of default more button of tabbar, In my case we need 7 tabs and iOS moves the additional tabs under more, I want to change the text of that tab. can anyone help on the same? Thanks in…
Mayank Jain
  • 5,663
  • 7
  • 32
  • 65
1
vote
1 answer

UITabbarItem - remove the highlighting shadow

I have been looking for an answer to this, but neither SO nor the web seem to have this covered ( I surely oversaw something...). I would like to remove the shadow of a highlighted UITabBarItem - the one with the rounded edges. I already have custom…
Icky
  • 1,055
  • 1
  • 12
  • 30
1
vote
3 answers

Presenting particular TabBarItem - iOS

I have a UITabBarController with four TabBaritem, and I have leftMenu in every ViewConrollers. The left menu selection leads to present each ChildViewController. So I used NavigationController to present every child view controller while tapping…
Angel F Syrus
  • 1,984
  • 8
  • 23
  • 43