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

How to check if a TabBar item is already present before adding at run time?

I have a tab bar project with one tab in the beginning and the view controller has buttons. If a button is tapped - a specific view controller is expected to be added to the tabbarcontroller/tab items. But each time I press the button the same…
Sivon
  • 91
  • 9
0
votes
2 answers

Evenly place UITabbarItem in UITabbarController

Below are 2 images of iPad UITabbar. By default i get the top one. But i need to make it like the second one (evenly spaced throughout the screen) without using Custom Tabbar. Is it possible?! EDITED : As i mentioned in one of the comments. In…
ScarletWitch
  • 522
  • 6
  • 23
0
votes
0 answers

iOS: keeping property values while switching between UITabBarItem's

I have a UITabBarController linked to 2 UIViewControllers, and in the "first" UIViewController I have properties whose values I need to be maintained when I switch to the other view controller and back. Instead, the value of those properties is…
Fabio
  • 3,015
  • 2
  • 29
  • 49
0
votes
2 answers

How to choose which UIViewController to show when clicking on UITabBarItem?

I'm using StoryBoard, and I have UITabBarController and an UITabBarItem (User Profile). When I click on UITabBarItem (User Profile), I want to check if the user is connected or not before the view is shown. I have two ViewContollers, one for sign…
raed
  • 4,887
  • 4
  • 30
  • 49
0
votes
3 answers

BarButtonItem not displayed when views of uisplitviewcontroller changed

My app works with tabbarcontroller as root view of the window, where on clicking each tab item loads splitviewcontroller with required views for it. The left and right panes of split views are navigation controllers. Now on any button action or…
SriPriya
  • 1,240
  • 15
  • 22
0
votes
0 answers

tabBarItem image shrinking on setBadgeValue

I have created a tabBarItem with an image. I have set badgeValue for it, which displays count of messages. When badgeValue is displayed, that tabBarItem image shrinks suddenly. Here is a screenshot of the situation: screenshot And here is the code…
user2134883
  • 255
  • 1
  • 2
  • 9
0
votes
1 answer

Create Custom UITabBarController in which Label should be in front of Image not bottom

I need to create the custom UITabBarController , the layout should looks like first the image then title infront of that image not the bottom of the image. Please suggest me the way how to do that or any link that can guide me for the same Thanks in…
Abhishek
  • 2,255
  • 1
  • 13
  • 21
0
votes
1 answer

proper way to set badge value on uninstantiated view controller?

I have 2 view controllers in a tab bar controller. My 2nd Nav Controller wants to set a badge value. This controller is not loaded when the app starts, so the badge does not show. If I go over to that tab, the badge is properly updated. this snippet…
0
votes
1 answer

How to link a tabBarItem to a viewController programmatically (iPhone, iOS)

I have an application with a login system. I want the tabBarController to change dynamically at runtime if the user login himself successfully! I have 5 tabs (Accueil, Tous les Voyants, Inscription, Connexion, Aide). When the user hit the login…
Shinnyx
  • 2,144
  • 2
  • 14
  • 21
0
votes
1 answer

How to change the Color of text in UITabBarItem in iOS 4

I know iOS 5 and later has methods to change the attributes for UITabBarItem but i don't know how to change the color of UITabBarItem title in iOS less than 5.0
vipul
  • 426
  • 1
  • 5
  • 13
0
votes
1 answer

UITabBarButton without switching to another view

Does anyone know of a way to have a UITabBarButton that, rather than segueing to another view controller, will perform another function, e.g. call a method? My iPad app utilises a tab bar but the client wants the right-most button to perform a check…
Robert
  • 5,278
  • 43
  • 65
  • 115
0
votes
2 answers

Remove selection image from tabbar item on modal view dismiss

I have a tab bar based app. I have selected/de-selected image set for every tab bar item. On first tab I have a button that opens up modalviewcontroller. At the time when modal view is activated, my tab bar item state is selected and has selection…
iOSDev
  • 3,617
  • 10
  • 51
  • 91
0
votes
1 answer

how to set the image for tabbar item when tabbar controller supports all the orientations in iPhone

I am new to IOS development. I am facing an issue in dynamically setting the images for Tabbar items. I have sub-classed the UITabbarItem . @interface CustomTabBarItem : UITabBarItem { UIImage *customHighlightedImage; UIImage…
0
votes
1 answer

Making one of the UITabBarItem items have no view in a UITabBarController

I have a UITabBarController with two "normal" UITabBarItem's that I add with the following code: self.tabBarController.viewControllers = @[viewController1, viewController2]; Now I would like my UITabBar to have one extra item that acts differently,…
Neigaard
  • 3,726
  • 9
  • 49
  • 85
0
votes
0 answers

UITabBar selector image padding and change image based on what tab is selected

I'm currently implementing a custom tab bar in the app I'm building and I'm having a bit of trouble. I still see a white line on the left hand side when this tab is selected and also on the right when the right tab is selected. The other tabs don't…
Biggs
  • 267
  • 3
  • 9