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
0 answers

Tab bar item scales if click twice or more

I want to set the images of tab bar items a bigger size. So I put this code in my TabBarViewController.viewDidLoad(): let titleTabrItems = ["Favourites","Calc","Time","Live","Shop"] for (index,item) in (self.tabBar.items ?? []).enumerated()…
cicaletto79
  • 179
  • 1
  • 12
0
votes
0 answers

image and text inside UITabBarItem

I'm trying to add a text and an image inside a UITabbarItem but it didn't work when I used UITabBarItem inside the Navigation Bar. So, I have added UIButton inside the Navigation Bar and set image and title for it like this: Click to see example…
Mohammed Hasan
  • 1,615
  • 2
  • 8
  • 13
0
votes
1 answer

UITabBarItem and selection one of the view

It's possible select the UITabBarItem desired in a TabBarController with 4 UITabBarItem with a click on a button?
0
votes
1 answer

Insert UITabBarItem at Specific Index

My Swift 4 UITabBarController usually has four UITabBarItem items on it. In certain circumstances it can have five instead of four, but I always want the far right button to be the same. That means I need to dynamically insert and/or remove the…
0
votes
1 answer

How to present viewController before presenting tabBarItem?

I have TabBarViewController and with tap on several of tabBarItems I must to check, if authorize user. If user is not authorised (it's a simple function returns true/false), I must present him viewController with authorisation, but if he is…
0
votes
1 answer

select tabbar item programmatically and show the indicator image

I am using UITabBar, not UITabBarController. Whenever user clicks on any tab, I am able to see the underlined image. public override func viewDidLoad() { super.viewDidLoad() UITabBar.appearance().selectionIndicatorImage =…
A_G
  • 2,260
  • 3
  • 23
  • 56
0
votes
3 answers

How to add a Camera button into a UITabBar?

Does anyone know how to add a Camera button into a UITabBar, like the one we see in 'Path'? http://i.appsafari.com/wp-content/uploads/2010/11/path.jpg Is it a extended UITabBar/UITabBarItem or an original class? Please let me know if you have any…
Taketo Sano
  • 699
  • 7
  • 10
0
votes
1 answer

Why i need to tap tabBarViewController item Twice to navigate to different View Controller - iOS

I Am Working on an Application where there is a TabBar present on My Menu Screen. It has 5 view Controllers (5 Tabs). I am assigning 2 view controllers at the index 3 and 4 respectively, so that if i click on any of the two, they will navigate to…
0
votes
1 answer

iOS UITabBar items location

Is there any way to create a tab bar in iOS with 3 tab bar items having these positions: Tab1 - margin left equals 0; Tab2 - centered horizontally; Tab3: margin right equals 0 ? I tried UITabBarItemPositioning.Fill and creating a custom UITabBar in…
Madalin Sisu
  • 92
  • 1
  • 12
0
votes
2 answers

iOS Tab Bar custom items images, tab bar draws gray images on the left

I try to change colors of the tab bar items images, for this I am using next code: // Generate a tinted unselected image based on image passed via the storyboard. for (UIViewController *vc in tabBarController.viewControllers) { UITabBarItem…
Borzh
  • 5,069
  • 2
  • 48
  • 64
0
votes
1 answer

iOS - How to remove highlighting of selected items in Tab Bar

I am customizing the tab bar, and I don't my items to be highlighted with the tint color set to the tab bar item. I wan't the highlight to be just the image that I set for the selectedImage property of the tab bar item. This is what it looks like…
JLT
  • 3,052
  • 9
  • 39
  • 86
0
votes
1 answer

UITabbar loses context when Tabbar Item changes

In my app I have two Tabbar items A and B. From A view controller I have presented another view controller C under current context of view controller A so that presented view controller doesn't cover the fullscreen and UITabbar is visible. Then,…
Rokon
  • 355
  • 3
  • 11
0
votes
1 answer

customize tab bar (need a guidance)

I saw some app have the following tab bar: I summarize the above tab bar with following characteristics: showing on top not fully occupy the full screen width Inside an navigation controller (I am using xcode8 + swift3) I would like to implement…
Leem.fin
  • 40,781
  • 83
  • 202
  • 354
0
votes
1 answer

Tab bar item transition

I have a tab bar controller in my code and I want to make the transition with animation between the tab bar items. I found a way to do this with the controllers, but not with the items. I know I have to use UIView.animate, but I don't know how. Any…
0
votes
1 answer

UITabBar item title repeated in the bottom left corner - visual bug

I have UITabBarController with tabBarItems set in (inherited) code. For some strange reason I can't figure out, the title of the first tabBarItem is repeated in gray in the bottom left corner of the tabbar. I believe I've even seen 2 titles…
Martin Koles
  • 5,177
  • 8
  • 39
  • 59