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
3 answers

colour icon in UITabbar item objective-c

I have a UITabbar controller with 3 item, I want to have colour icon instead of based Gary icons, would you please give me some hint that how can I have colour icon in tababr, Here is my code: self.title = @"test"; self.tabBarItem =…
user1997934
1
vote
2 answers

App will crash when run on iOS 4.3 in simulator

My app running perfectlly in iOS 5.1 and iOS 6.1. But wheen I try to run it on iOS 4.3 than it was crahing on this code: [self.tabBarItem setFinishedSelectedImage:[UIImage imageNamed:@"home-active.png"] withFinishedUnselectedImage:[UIImage…
user2144055
1
vote
1 answer

UITabBar Customization in iOS 4

Hi i am developing in Custom tabbar and my deployment Target is iOS4 In iOS5 wise Everything fine. In iOS4 wise not working Code snippet UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tabBack.png"]]; if…
Senthil
  • 510
  • 12
  • 28
1
vote
2 answers

No UITabBarItem image when using BannerViewController

I have a universal tabbed app targetting ios 6 with 4 tabs. Almost ready to release, and I started to look at the latest and greatest ways to support iAds. After looking at the iAdSuite demo project from Apple, it seems as though using the…
1
vote
2 answers

Add new TabBarItems in UITabbarController

I have an application which has a UITabbarController with only One TabBarItem in it i.e. "Home". Now the problem is while I am in my Home Tab bar Item Can i Add More TabbarItem's with different ViewControllers to my existing…
Shah
  • 4,990
  • 10
  • 48
  • 70
1
vote
1 answer

self.tabBarItem respondsToSelector always returns no

I am trying to change the font color on tab bar items. I'm using code from this post: change tabbar text color,iPhone My code is as follows: if ([self.tabBarItem respondsToSelector:@selector(setTitleTextAttributes:)]) { NSLog(@"yes"); …
1
vote
1 answer

How to customise the iOS badge number background

How can I customise the badge number on UITabBarItem? Something like this
Chinthaka
  • 966
  • 1
  • 13
  • 42
1
vote
4 answers

how to change selected index of tabbar item when pushing UIViewController in iPhone

I am pushing one view controller to another view controller but when I am pushing the tabbar item index is not changing.How can I change selected index when pushing view from one to another.Thanks in advance.
newDev
  • 103
  • 3
  • 11
1
vote
2 answers

UITabBarItem selectedImageTintColor. How to find the color to set as tintcolor

I was using the selectedImageTintColor property in my TabBarController to change the color of the selected TabBarItem. The problem is that the color you set as tintcolor is not the final color applied, before it is changed (it gets some kind of…
pdrcabrod
  • 1,467
  • 1
  • 14
  • 22
1
vote
1 answer

scrolling not working for views inside tabbar application

I have created a tabBar application, it has two tabs one tableView with detail items and another simple UIView with a UILabel. I added scrollView to detailViewController and put all UI items under scrollView to get scrolling. I connected the…
1
vote
2 answers

iOS Change frame of UITabBarButton in UITabBar

In my app I have a UITabBarController in which I give custom selected/unselected images in my AppDelegate as follows: UIImage *selectedImage = [UIImage imageNamed:@"home-tab-selected"]; UIImage *unselectedImage = [UIImage…
RyanG
  • 4,393
  • 2
  • 39
  • 64
1
vote
1 answer

iOS Custom Tab Bar Items Taller Than Tab Bar

Ok, so, I'm trying to create a custom tab bar. I've read a hundred tutorials and downloaded half as many sample code projects and this problem seems to still be in all of them. I don't really want a custom background, what I really want to for the…
d2burke
  • 4,081
  • 3
  • 39
  • 51
1
vote
2 answers

show all tabs with scrolling option (on screen there should be only 4 tabs)

I am newbie for iOS development. What I have done so far is as below. Created New Project Removed all controller and added View Controller. Dragged ScrollView in ViewController Dragged Tab Bar in ScrollView Dragged 7 Tab Bar Item in Tab Bar. Now…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
1
vote
1 answer

iOS: iTunes-like Badge in UITabbar

I have got a UITabBarController in a Storyboard. Right now, it has got 5 UITabBarItems. When I am in the other UITabBarItem, I want to update the Badge on the other UITabBarItem(my "Downloads") just like the iTunes App does with this "jump-like"…
1
vote
1 answer

how to change TabBarItens when push a UIViewController?

On my firstViewController I have a tabbar that contains my firstViewController and a helpViewController. When I click on a button from the FirstViewController, I push a NewViewController. But, when this view is pushed, I want to change the content…