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

Adding additional UITabbarItem to UITabbarController

I am wondering if there is a way to add an additional UITabBarItem to my exisiting UITabBarController. It doesn't need to be in runtime. All I want to do is when hitting this button I want to presentModalViewController: over my actually visible…
1
vote
0 answers

Adding a border to the top of a uitabbaritem?

I would like to highlight a selected UITabBarItem by adding a 2 point border with colour to the top of it. I thought it would be a simple case of looping using add sub view but you can't gain access to the view of the UITabBarItem. Could someone…
ORStudios
  • 3,157
  • 9
  • 41
  • 69
1
vote
1 answer

How to set a different unselected image and text color on UITabBarItem

I'd like to set different colors for a UITabBarItem's title text and image in the unselected state. For the selected state, I can accomplish this like so: [[UITabBar appearance] setTintColor:[UIColor purpleColor]]; // image color [[UITabBarItem…
James Frost
  • 6,960
  • 1
  • 33
  • 42
1
vote
1 answer

How to change inactive tabbar 'more' item textcolor and image?

I have created a UITabBarController with seven of TabBarItem so all the icon image works fine by rendering as the original image. Now the Question is how to change the more tabbar item text color and image in inactive state that is created…
Salman Ghumsani
  • 3,647
  • 2
  • 21
  • 34
1
vote
2 answers

Badge not appearing on tab bar item when set in notification callback

I'm trying to set the badge in my tab bar to "1" on the 4th tab when a notification is received by my app. Strangely enough, my console says that the method is firing (see NSLog "Fire!"), however the badge doesn't appear on my tab bar item once the…
Brittany
  • 1,359
  • 4
  • 24
  • 63
1
vote
1 answer

MDCTabBar change font type and size

Is it possible to change the font size of tabs into MDCTabBar ? MDCTabBar is part of a google library to use the design material in iOS https://github.com/material-components/material-components-ios
1
vote
0 answers

Change the tint of a specific TabBarItem and leave it tinted regardless of the selection state - Swift

Is there a way to change the tint of a specific TabBarItem and leave it tinted regardless of the selection state? What I want is something similar to the UITabBar used in Facebook's Messenger where the center button is always tinted blue. Any idea…
fs_tigre
  • 10,650
  • 13
  • 73
  • 146
1
vote
1 answer

Automatically highlight UITabBar Button

I'm using this method http://redartisan.com/2010/6/27/uisegmented-control-view-switching-revisited to create a custom UITabBar and loading a particular view when a certain TabBarItem is clicked. The problem is that initially the first view is…
James
  • 1,689
  • 3
  • 17
  • 21
1
vote
2 answers

Action Event for Photo Album cancel button in iphone

I'm working with tabBarBased application.At the time of clicking the one of the tabBarButton it opens the photo album .In photo album there is a cancel button on top(navBar) right??Here i want to perform action event for cancel button click...while…
Varshu
  • 64
  • 10
1
vote
1 answer

Perform Action When TabBarItem is Pressed

How do I add an action to a Tab Bar Item when it is pressed. I've tried a few things, but either they aren't right, or I'm putting them in the right location. In my storyboard, I have a tab view controller, which is connected to a navigation…
iFunnyVlogger
  • 437
  • 1
  • 6
  • 17
1
vote
0 answers

custom tab bar item swift 3

I have a custom tab bar item image that is also the profile picture of the user. The image is coming out blurry and I know it is because of the device I am using. I am not sure how to set an image that the user uploads to 2x and 3x because the image…
juelizabeth
  • 485
  • 1
  • 8
  • 31
1
vote
1 answer

Set ios tabbar item programmatically

I have four tab items that I set via storyboard but I have just one tab bar that I would like to set programmatically because I want that last tab bar item to be my profile picture. Is there a way I can set just that one tab bar item…
juelizabeth
  • 485
  • 1
  • 8
  • 31
1
vote
1 answer

Swift 3 - full width of UITabBarItem for selectionIndicatorImage

i have a UITabBar with three tabs. Now I want to assign or lets say to fill the complete width of one tab to the related selectionIndicatorImage cause currently I got a border if a tab is selected. Like the tab on the left side shows in the…
Yetispapa
  • 2,174
  • 2
  • 30
  • 52
1
vote
2 answers

Unable to get UIImageView from UITabBar swift

I am following tutorial to animate tab bar images. The given line of code doesn't work for me secondItemView.subviews.first as! UIImageView as it gets data of type UITabBarButtonLabel and not UIImageView. I added tag value 1 so that I can get…
A_G
  • 2,260
  • 3
  • 23
  • 56
1
vote
1 answer

How to specify width, flexible space and/or position between UITabBarItems in UITabBar?

I am working on a project when client wants UITabBar lookalike toolbar (icons and titles) at the bottom of some views. The tab bar needs to have 1 item at the left, empty space, and then 2 items at the right. Do I have to use 2 extra UITabBarItems…
Lukasz
  • 19,816
  • 17
  • 83
  • 139