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

Delay in updating Tab Bar Item's Badge Value

I have a function which runs every 5 seconds to check for new messages, if a new message is triggered I'm updating the badge value of the tab bar item using the below code NSString *chkUrl = @"http://domain.com/script.php"; NSURL *url =…
DeZigny
  • 1,953
  • 4
  • 19
  • 29
4
votes
5 answers

Remove TabBar Button glow(not on image- hiding the selection tint of button)

I've created a tabbar application,I am using a custom TabBar with a backGround image. I have finished all the parts but unable to remove the glow of tabbar button on click(i just changing the UIButton selection on click,but glow is still there) How…
Nithin M Keloth
  • 1,595
  • 1
  • 20
  • 37
4
votes
2 answers

UITabbarItem BadgeValue Text Color

I have a problem in my App. I set a badge value at one of the tabs in the UITabBar. The Badge value is correctly red and the circle around the badge value is correctly in white. The problem is, that the color of the text is gray (160, 160, 160). It…
4
votes
1 answer

Xcode Add tabbar icon dynamically

I've read different answers about adding tabbar icons both in the app delegate and in the interface builder.I want to add them in my firtsviewcontroller, because I wanted to read the icon image name from the plist. It is suggested to do like…
Aitul
  • 2,982
  • 2
  • 24
  • 52
4
votes
1 answer

remove blue outline from uitabbaritem image

I have changed the tabBar.selectedImageTintColor to my own purlple color however when the tabbar item is selected there is a bright blue line that surrounds the outside of the image which is now purple.. This looks fairly bad, so now I am trying…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
4
votes
2 answers

tag for UITabBarItem

When I use the this method to initialize a UITabBarItem: - (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag Do I need to have a distinct tag for each tab bar item, or (since I don't use them) can I simply use the same…
Sophie Alpert
  • 139,698
  • 36
  • 220
  • 238
3
votes
1 answer

How can i detect the tabbar item changes from Edit in 'More' tabbar item?

I have 6 tab bar items, 4 titles shown directly and other 2 are in 'More'. I have added 'cell background image' on More tableview. Now the problem is, When i click "Edit" button in More tabbar item and change the tab bar items the tableview…
Yuvaraj.M
  • 9,741
  • 16
  • 71
  • 100
3
votes
4 answers

How to use a custom UIImage as an UITabBarItem Badge?

How can I add a custom UIImage as the Badge for a UITabBarItem? I.e It will show up when the badge value of the UITabbarItem is set.
max_
  • 24,076
  • 39
  • 122
  • 211
3
votes
1 answer

iOS 15 UITabBarItem customization

I have UITabBarConroller subclass and custom items. Customization looks like this: private func updateTabBar() { guard let items = tabBar.items, tabViewControllers.count == items.count else { return } for (item, vc) in…
3
votes
4 answers

Sliding UITabBarItems in UITabBarController

I have a UITabBarController as my rootController with 8 UITabBarItems. and I want to show just 4 UITabBarItems in my screen. By default all my other tab bar items appear in a small tabBarItem called "More" and you can select the other 4. But I have…
Legolas
  • 12,145
  • 12
  • 79
  • 132
3
votes
2 answers

How change Text color UITabBarItem selected?

Possible Duplicate: Setting text-color on selected tab bar item Hello, I'm programming in Objective C for iPhone. I wish change the text color of Tab Bar item when I pulse it. ¿Is this posible? Thank you very much. Regards.
Paolpa
  • 319
  • 2
  • 5
  • 10
3
votes
1 answer

UITabBarController: UITabBarItem Updating it or Reloading it

How do I update or reload the text color on the UITabBarItem? It will, only if I kill the app and re-open again. Then it will refresh the textColor on the UITabBarItem Swift 5.1, iOS 12 func handleRefreshForTabBar() { …
Marlhex
  • 1,870
  • 19
  • 27
3
votes
1 answer

Selected Index on Tab Bar not working on Swift

I want to change the default selected view controller of a UITabBar / UITabBarController via selectedIndex. I tried other solutions I saw in other threads, like changing it in the AppDelegate or in ViewDidAppear like this: class…
Maruta
  • 1,063
  • 11
  • 24
3
votes
2 answers

UITabBarItem title in centre of title, not at bottom

I want to make place tabbaritem.title in centre of item, it's possible? I'm trying make image with text in center and create custom tabbaritem, but it looks awful.Help me please.
Tunyk Pavel
  • 2,473
  • 6
  • 31
  • 46
3
votes
1 answer

Change UITabBarItem badge font in iOS 12

I want change my tabbarItem badge font and I tried to do this using this answer but as it says in the comments it works for iOS 10 but there are issues in iOS 11. I'm trying to do this in iOS 12 using swift 4 but it doesn't work.…
Niloufar
  • 512
  • 1
  • 5
  • 24