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

How to hide white shadow of tabbar from selected item

is there any way to hide shadow color of UITabBar from it's selected items. for some reason i'm assigning different background images to tabbar on the basis of selected tab index rather than assigning image to individual tab. there is white shadow…
W.S
  • 931
  • 1
  • 10
  • 36
1
vote
2 answers

Tabbar - selected item shadow

I have increased the tab bar height by using CGRectMake, and my questions is: can I increase the shadow (that appears over the tab bar item when is selected) height ? and how ?
1
vote
0 answers

iOS UITabBarItem setFinishedSelectedImage:withFinishedUnselectedImage: memory leak?

I have a memory leak situation about UITabBarItem. My app has a TabBarController with customized pictures. so here is the code I put on my graph files. UIImage *selectedImage0 = [UIImage imageNamed:@"A-click.png"]; UIImage *unselectedImage0 =…
Alexander Huang
  • 1,345
  • 2
  • 11
  • 16
1
vote
2 answers

iPhone dev - UIViewController title, tabBarItem, tag

I have a UITabBarController that manages 5 View Controllers. I create their tab bar items in their "init" methods so that they will be displayed before the view is loaded. I'm just wondering what way I should do it, because there seems to be so many…
mk12
  • 25,873
  • 32
  • 98
  • 137
1
vote
1 answer

Custom UITabbarItem without title created with storyboard

I know this is probably something very basic but I can't, for the life of me, figure out how to do it. I've searched around but haven't seen any solution that works. I have set up a UITabbar using Storyboard and I have it set up to use custom images…
Predator
  • 469
  • 2
  • 6
  • 20
1
vote
0 answers

iOS 5: tabBarItem setTitleTextAttributes for selected vs unselected state

The attributes set for UITabBarItem UIControlStateNormal overrides of UIControlStateSelected! [navigationCtrl.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [Util colorFromHex:@"474747"], UITextAttributeTextColor,…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
1
vote
1 answer

What is the default "touch" event on the Apple UITabBarItem class?

I'm doing a custom TabBar by adding subviews on top of the default tabBar and trigerring the selected event programmatically. It works well but the problem is that my tabBar has not exactly the same behaviour as the Apple one : On the Apple default…
adriendenat
  • 3,445
  • 1
  • 25
  • 25
1
vote
1 answer

UIBarButtonItem on UINavigationBar in UITabBarController

I'm new here. Sorry for may English. I work on an iPhone application, which has an Tab Bar Controller (within an Navigation Controller). The Tab Bar Controller has four tabs and an Navigation Bar with default Back Button. I will set an other Bar…
1
vote
1 answer

UITabBar changing each time to a new tab, without scrolling to middle

I want to create an tabBar with 15 items that can be scroll right-left and stop in the middle and not just scrolling each time all the 5 items (320 every time) I found a code and changed it for displaying 5 items, but when i'm scroll it, all the tab…
vadim
  • 119
  • 3
  • 14
1
vote
0 answers

How can I change the style of UITabBar?

I want to make UITabBar in such a way that it will have 5 items and the middle one will be come out of the tab bar. How can I get these done? I can't share my code. What I am doing in my code I can describe. In my Delegate.m file I am creating one…
1
vote
0 answers

Change UITabBarItem image position

Does anybody know how to change the position of the image in the UITabBarItem using the Appearance Proxy object in iOS5? Thanks a lot
Claus
  • 5,662
  • 10
  • 77
  • 118
1
vote
1 answer

Best way to trigger a Modal View Controller on Tab Bar press.

When the user triggers a tabbar item I want to display present a modal view controller. I have something working but it's probably not the cleanest way to do it. It also prevents the UITabBarItem to be in selected state. What I did is setting this…
1
vote
1 answer

TabBarImage is not resized properly

I am trying to assign a 60x60 px image to the tabBarItem.image: self.tabBarItem.image = [UIImage imageNamed:@"tab_settings@2x.png"]; I have read in HIG, that I should put 60x60 px image for the Retina display. But what I get is an incorrectly…
Denis Kutlubaev
  • 15,320
  • 6
  • 84
  • 70
1
vote
1 answer

Customize the More UIBarButtonItem in UITabBar

Since iOS 5 Apple provided an API to customise the UITabBarItems in the UITabBar object. I am refering specifically to the following selector: setFinishedSelectedImage:withFinishedUnselectedImage: It all works great for regular buttons but I can't…
pierrephi
  • 101
  • 1
  • 6
1
vote
0 answers

Set Delegate in a UITabBar StoryBoard App

I have an application like this: Now, I want to set the SubscriptionsViewController (first UIViewController on the left) as the delegate of the UserViewController. I have created a @property in the UserViewController.. bla bla bla, but now I can't…
Marco Manzoni
  • 707
  • 3
  • 11
  • 21