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 change UITabBarSystemItemContacts in iphone?

Currently i am working in iphone application, Using UITabbar to create five tabbar and set UITabBarSystemItem, When i select third tab, then i tried to change Custom image instead of UITabBarSystemItemContacts, but it doesn't work. I tried this: …
SampathKumar
  • 2,525
  • 8
  • 47
  • 82
0
votes
4 answers

Tabbar Item connected to ibaction

I am trying to find a way to make an item of the TabBar acting as a "UIbutton". I would like when pressing to this item just make it work as a ibaction method. I tried several implementation as : -(void)tabBar:(UITabBar *)tabBar…
Ben
  • 1,031
  • 3
  • 17
  • 31
0
votes
1 answer

two ViewControllers for one tab in a tabBarController

I have a tabBarController (that i created using code without Interface Builder): self.tabBarController = [[[UITabBarController alloc] init]; self.tabBarController.viewControllers = [NSArray arrayWithObjects:firstController, secondController,…
zak
  • 39
  • 1
  • 4
0
votes
1 answer

Change the label of a UITabBarItem from different View

This is mainly a delegation question because I'm still learning and don't get it. I don't know how to go about creating the delegate I need. I have a tabbed view controllerwith 2 views, let's call them view 1 and view 2. Then I have a settings view…
sbjluke
  • 309
  • 5
  • 15
0
votes
1 answer

Hide a Tab bar Item in Xcode 4

I have a tab bar controller with a logginViewController, and I want to hide the tab bar item related to logginViewController and show a different tab bar item with a different ViewController I'm working using Storyboard in a tab bar based app for…
Sascuash
  • 3,661
  • 10
  • 46
  • 65
0
votes
1 answer

Tab Bar Icon display issue in universal app

I have an odd issue that's driving me nuts by now. Hopefully someone here can help me or ran into something similar. I've searched up and down but didn't find anything similar. I am creating a universal app (Xcode 4.3.3) with storyboard including a…
user1459524
  • 3,613
  • 4
  • 19
  • 28
0
votes
1 answer

Is there a way to override popToRootViewControllerAnimated: invoked by a tap on a Tab Bar Item?

I'd like to override the animation of popToRootViewControllerAnimated: (currently: YES) when a user taps on the same tab bar item that is already selected. When the tab bar item is first tapped, I check whether the user is signed-in in the…
0
votes
3 answers

Tab Bar Icon does not appear (what are the restrictions on these?)

Well, this is no doubt silly, but I can't get my tab bar icon to show up. Here is the code: - (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { // Misc stuff deleted [self.nibBundle loadNibNamed:nibNameOrNil…
Bryan Hanson
  • 6,055
  • 4
  • 41
  • 78
0
votes
1 answer

Items of a UITabBar are not being highlighted when selected

I'm having a trouble with a UITabBar with UITabBarItem added programmatically, the selected item is not being highlighted in white as usual. Here's the source UIImage *imageX = [UIImage imageNamed:@"sample.png"]; UITabBarItem *tabBarItem =…
herd
  • 155
  • 2
  • 19
0
votes
1 answer

Custom Tabbar resize

I have a problem with my custom Tabbar while selecting the size of button appear smaller than the old state btnImage =[UIImage imageNamed:@"menu_2_89x46"]; btnImageSelected = [UIImage imageNamed:@"menu_2h_209x109"]; btn2 =[UIButton…
0
votes
1 answer

tab bar item don't recive variable

first of all, i'm using storyboard. i first created a viewcontroller controlled by one class, and in this view ther is a textfield where the user puts a number, a button uses modal to take the user to a tabbar controller with two itens "one" and…
user1525984
0
votes
0 answers

Changing Text Color of Unselected UITabBarItems

Here's what I've tried: I've tried the following in the parent view controller: [self.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor],…
Jesse Bunch
  • 6,651
  • 4
  • 36
  • 59
0
votes
1 answer

how to check if uitabbarbutton is currently selected

I am trying to figure out how to check which uitabbarbutton is currently selected before I let a user select another I would like them to deselect their previously chosen button. This is the code that I am using to see which button gets selected..…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
1 answer

How can I correctly change the way a UITabBar appears using the appearance proxy?

Since I am developing an iOS >= 5.0 application, I am trying to change the appearance of the main UI components through the appearance proxies. When dealing with the UITabBar component, I correctly changed its tintColor to a light shade of gray…
marzapower
  • 5,531
  • 7
  • 38
  • 76
0
votes
1 answer

UITabBarController embedded in a NavigationController

I know this question has been asked before and the solutions I've heard is to not use a UITabBarController but to add a UITabbar to a view and push its corresponding viewController to the navigation controller. However, when I use this method, I…