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

Rename tabs at run-time

I have a tab bar app that has to display in different languages depending on a user's preference but I can't find much info on how to change the tab names at run-time. I need the tabs to show the correct names at startup, not when the tabs are…
Spider-Paddy
  • 303
  • 2
  • 14
2
votes
3 answers

Change Default "Not Selected" UITabBarItem Image Color

how do we change the "Not Selected" or the unhiglighted state of the icons in UITabBarItem? I tried setting the UITabBarItem.appearance().setTitleTextAttributes(:) but it only changes the text color. Any idea?
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
2
votes
2 answers

How to change the text 'More' on the standard UITabBarItem

I have a TabBarController with several UITabBarItems, the last of those items is the standard 'More' UITabBarItem provided by iOS. I want the title to be 'Meer' (More in my language), but when I try to set the title programmatically it doesn't…
Tim Kranen
  • 4,202
  • 4
  • 26
  • 49
2
votes
2 answers

Wrong status bar height while editing moreViewControllers

I have an iOS app with a "More..." button at the UITabBarController. When I am hitting "More..." the new view appears that has an "Edit" button on top right. Clicking "Edit" shows the view in Edit mode, see at the attached image. The problem with…
cateof
  • 6,608
  • 25
  • 79
  • 153
2
votes
0 answers

Point Multiple TabBar Controllers at a Given Set of View Controller

I have a set of detail views that are intended to be accessible via multiple Tab Bar controllers. The main goal here is to make a particular set of tabBar items available based on some conditions of a particular item in the table. My current…
Michael Voccola
  • 1,827
  • 6
  • 20
  • 46
2
votes
1 answer

How can refresh UIView in UITabBarController?

I'm stack on refreshing view in TabBar. The UIView is read only first time I pressed the TabButton and does not "viewDidLoad" next time. I want to refresh UITableView every time I pressed the button. Thank you!
Kazu
  • 29
  • 2
2
votes
2 answers

Swift hide just one button on tabbar

I have seen lots of code to hide the whole tabbar. I am using tab bar controller in storyboard. If I had third and fourth buttons how could I hide just the second but still have 1, 3 and 4 buttons shown?
MwcsMac
  • 6,810
  • 5
  • 32
  • 52
2
votes
1 answer

iPhone instantiating a UITabBarItem programmatically

Try as I might, I cannot get this to work. Here is my latest attempt. Can someone clue me in as to why this does not work? In a method which is called by my view controller's init method: UIImage *image = [UIImage imageNamed:…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
2
votes
1 answer

Tab Bar Controller: executing code before switching view

I want to execute some code, before showing another view, when a user pushes the Bar Item with different view in a Tab Bar Controller. I am trying to use delegation in my class: @interface HPAAddCarOverallInfoTableViewController ()…
2
votes
2 answers

How to add a main view controller to a tab bar controller that is not one of the tab bar items?

i'm building a to do list app that have a main page that I want to use for presenting some data in, and this main page have 3 action buttons that are: List button - takes you to a page which present a list of things Create button - takes you to the…
2
votes
1 answer

iOS Tabbar UITabbarItem decrease size after tap

I'm using storyboard and a TabbarViewController. The tabbaritems decrease their size after tapping. The images are set in a NavigationController, the name in the NavigationController is the name of the imageset in Images.xcassets. The sizes of the…
joen
  • 21
  • 2
2
votes
2 answers

Wrong size setSelectionIndicatorImage

Good day! I put a picture in a tab bar but it has wrong sizes. Help me solve the problem.I want to fill the entire Item. + (void)setupTabBarAppearance { [[UITabBar appearance] setBarTintColor:[UIColor colorWithRed:30.0f/255.0f…
Lipatov Eugen
  • 407
  • 3
  • 10
2
votes
4 answers

UIAlertView changes UITabbar item selected color

I've got a strange problem in my application: i've a UIViewController that present an UIAlertView when an user taps on a button. The alert let the user choose between the Photo Library and the iPhone camera. When the alert shows up, i notice this…
javal88
  • 1,188
  • 3
  • 17
  • 29
2
votes
2 answers

iPhone: Trouble reading badge value from uitabbaritem

I'm trying to figure out programmatically if a particular tab bar item in my app has a badge. While I'm debugging, visually, I can plainly see that it does. But when I run this code in the viewController in question: UITabBarItem* thisVCsTabBarItem…
Greg Maletic
  • 6,225
  • 8
  • 54
  • 73
2
votes
1 answer

FontAwesome for UITTabBarController

I am working on building a mobile app to compliment a website and I need to mimic the icons used on the site. The icons are from FontAwesome and I want them to appear as my UITabBar Items. I have successfully installed the FontAwesome into my…