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

UITabBar appearance works on iOS6 but not iOS 5

I have some code to customize the TabBar. I use the appearance framework to do this. The App is iOS 5+ so this should work as far as I understand it. My code looks like this: NSDictionary *textAttributesNormal = @{ UITextAttributeTextColor:…
thomas
  • 1,446
  • 8
  • 20
0
votes
2 answers

How to prevent uitabbaritem from taking me to "root" controller?

In my app, I have several uiTabBarItems (like search, list of items, account). When I click on account, user is supposed to put in credentials to log in. After successful login, name of tabbaritem is changed and new view controller is pushed…
Yanchi
  • 1,030
  • 1
  • 20
  • 31
0
votes
1 answer

Do not change tab title

When I change controller's self.title, tab title also changes to that string. Is it any workaround to avoid it?
Shmidt
  • 16,436
  • 18
  • 88
  • 136
0
votes
1 answer

Max Width of UITabbarItem on iPad?

what's the maximal width of each item on iPAD e.g. on 5 items. I know on iPad is on left and right corner some space, but how big is width on each item? (On iPHone it's easy to calculate..but how is it on iPad?
kurtanamo
  • 1,808
  • 22
  • 27
0
votes
2 answers

UITextField: force resignFirstResponder when tapped outside of it

I have a static UITableView that contains a number of UITextFields. When the user taps outside of any of the text fields I'd like to I'd like to dismiss the keyboard. At the top level of my UIViewController is a UITableView and a UITabBarItem. I…
RobertJoseph
  • 7,968
  • 12
  • 68
  • 113
0
votes
1 answer

How can i use custom tab bar item when it's selected and a transparent one it's not selected

I have two custom tab bar items which i want to be highlighted in color when they are selected in a certain controller. However, when they are not selected, i want tabbar to show transparent tab bar item images which i have created. I tried…
Monis Manzoor
  • 183
  • 3
  • 14
0
votes
2 answers

UITabBarItem not exactly on bottom

I've created a custom tabbar but my tabbar isn't exactly on bottom of the screen. I don't know where the mistake can be...but on the bottom of the screen on a height of 2-3 pixels I see the standard tabbar (you can see a highlighted curves on active…
kurtanamo
  • 1,808
  • 22
  • 27
0
votes
1 answer

Iphone UITabBarItems titles overlap

in my app i use a navigation controller and a tabBar for my views. The problem is that the titles that i have for the views are a little too long to fit.. they appear like in the photo below. alt text…
Sorin Antohi
  • 6,145
  • 9
  • 45
  • 71
0
votes
0 answers

Tab Bar & tab bar items in UIViewController

I added Tab Bar and a 6 or 7 tab bar items on it by dragging them to a UIViewController , and then add a web view above . My goal is to load a different local HTML files in web view when clicking different tab I make the Tab Bar as a delegate for…
Shymaa Othman
  • 239
  • 1
  • 3
  • 16
0
votes
2 answers

Adding button near to default 'back' button in navigationBar

I am building and anthat uses webView's.By selecting some tabs i'm displaying also some views non- webView. I have a problem with navigationController I'm setting my navigationController in my Ncontrolls class that have the next code: - (void)push{ …
vadim
  • 119
  • 3
  • 14
0
votes
0 answers

Increasing the font size of UITabBarItem text

I have a UITabBarController with 4 tab bar items in it. I do not have any image to put over there. I wanted the text to look bigger and span in two lines if possible to compensate for image. It looks little odd now. Any clue how to achieve this.
Abhinav
  • 37,684
  • 43
  • 191
  • 309
0
votes
1 answer

Image position inside UITabBarItem

I'm using code to shown a UITabBar with items, I downloaded an example that show item with system icons of "favorites" "contacts" ... UITabBarItem *favorites = [[UITabBarItem alloc] initWithTitle:nil image:a1 tag:0]; UITabBarItem *topRated =…
vadim
  • 119
  • 3
  • 14
0
votes
1 answer

uncaught exception : -{WebDataSource indexof:]: unrecognized selector while using framework

- (void)ItemPressed:(id)sender { NSInteger index = [self.tabBarItems indexOfObject:sender]; BOOL shouldSelect = [self delegatedDecisionIfWeShouldSelectViewController:[self.viewControllers objectAtIndex:index] atIndex:index]; if…
Bharathi D
  • 953
  • 1
  • 15
  • 28
0
votes
1 answer

customizing the uitabbaritem

Hello I have been trying to customize the UItabBarItem and i have found some piece of code can customize the UItabbaritem but they aren't just working me. Nothing happens when i use any of the two code. Any help will be appreciated. thx in…
Azerue
  • 258
  • 6
  • 16
0
votes
1 answer

ios - UITabBar images are not rendering on the emulator

I have an image that looks like this: I am trying to make it render on the UITabBar and here is what I did. I went in XCode to File --> Add Files to Project, then I chose the files I wanted and they got added. Then when I clicked on the files, on…
GeekedOut
  • 16,905
  • 37
  • 107
  • 185