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

Change y position of a UITabBarItem

well my doubt is simple, there is the possibility to modify the y cordenada a tabBarItem? I need this because I want to align all TabBarItens from right to left, because my app will work in Landscape mode. I want something like this: Align icons…
jucajl
  • 1,195
  • 3
  • 12
  • 29
4
votes
2 answers

ios retrieve when uitabbarcontroller item is selected

I need to retrieve when a user click over a tabbaritem into a uitabbarcontroller to change something.. here is my code: - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item { if (item == [tabBarController.tabBar.items…
ghiboz
  • 7,863
  • 21
  • 85
  • 131
4
votes
2 answers

What are the font settings used on native UITabBarItem

I'm trying to duplicate the naive font settings used on a UITabBarItem for use on a custom tabbar. Does anyone know what the font settings are? What UIFont, font size, text color, etc...?
cpjolicoeur
  • 12,766
  • 7
  • 48
  • 59
4
votes
0 answers

Can't set UITabBar shadowimage in iOS 13

After upgrading to iOS 13, several tab bar related issues have appeared. I have fixed most, but the remaining one is being unable to overrride the tabbar's shadowimage. The following code worked in iOS 12 and lower: [[UITabBar appearance]…
RunLoop
  • 20,288
  • 21
  • 96
  • 151
4
votes
1 answer

Swift 4 - How to override tab bar will open view controller

Is it possible that when a user clicks on a Tab bar item that I can override this in the UITabBarController , where I then check a UserDefault which then decides whether I show the view or return and they stay on their current view ? It would be…
Niall Kiddle
  • 1,477
  • 1
  • 16
  • 35
4
votes
1 answer

UITabBarItem's title does not shown when using with Navigation controller

I'm having a trouble with my very simple app. My app simply have 2 mains UIViewControllers called News and Category, each of them has their own UINavigationController. So in AppDelegate.swift, I've done like this window = UIWindow(frame:…
phuongzzz
  • 85
  • 1
  • 10
4
votes
1 answer

How to move from one tabBarController child view to another Tabbar controller in swift 3.0

I have a tabBarController which have three tabs on Tab 3 i have a ViewController which have further child. But from that Child ViewController of UITabBarController index 3 i want to move at UITabBarController Index 1 how to do that kindly explain.
4
votes
2 answers

IOS Tab bar image size and resolution

I would like to add images to each one of my tab bar items. According to iOS Human Interface Guidelines the custom icons should have the following sizes: In Xcode for each image set it is required to prepare 3 images with different resolutions…
Vah.Sah
  • 522
  • 1
  • 6
  • 21
4
votes
2 answers

Reload / Refresh tab bar items in a ViewController ?

I am trying to change images of my tabbar in a ViewController, but to display the new images, I must click on each tab bar item. for (CustomTabBarItem *myItem in self.tabBarController.tabBar.items){ myItem.enabled = YES; …
blade196
  • 43
  • 1
  • 3
4
votes
3 answers

TabBar icon bounce effect on selection like a Twitter app in Swift

How can I create a tab bar icon bounce effect like a Twitter app when I tap on one of them? look like it's scale down and after that back to normal. Thank you.
Dark star
  • 5,192
  • 9
  • 35
  • 54
4
votes
1 answer

How to disable tabs in UITabBarController?

Before I updated to Swift 3, this worked perfectly (besides isEnabled was just enabled). This code is in my UITabBarController ViewDidLoad function. The if is never met so therefore the items are never set to true. How do I access the items as I…
Torewin
  • 887
  • 8
  • 22
4
votes
0 answers

How to change actively selected UITabBarItem text font/size/weight in iOS Swift?

I have been attempting to change the UITabBarItem text font, size and weight when it's the currently selected tab. I have achieved changing the color via UIControlState.Selected but for some reason the font is not changing. I have searched for 12…
Abhi
  • 270
  • 3
  • 12
4
votes
1 answer

UITabbarItem : - Downloaded image does not show up at Tabbar Item.

I am fetching the image url in the json response from server and downloading image using SdWebimage framework which is downloading fine. But when I set this downloading image object to tabbar item , it does not show the image instead it shows the…
Himanshu
  • 2,832
  • 4
  • 23
  • 51
4
votes
1 answer

Can't set tab bar items

I am trying to set the items for my Tab Bar from the TabBarViewController. However, once I set the items, here's the error I get: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Directly modifying a tab bar…
dpstart
  • 1,018
  • 1
  • 10
  • 25
4
votes
0 answers

UITabBarController moreNavigationController item image (UITableViewCell image)

I'm using the UITabBarController's built in moreViewController. In the main tab bar I'm using original images instead of template images: tabBarItem.image = [[UIImage imageNamed:imageName]…
VaporwareWolf
  • 10,143
  • 10
  • 54
  • 80