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
7
votes
5 answers

How to change tabbar icon color from default blue?

I have got four tabs. I was able to change the tab icon color from default blue to red (or probably any color) and it works perfectly fine. The problem is it works only for three tabbaritems and last one is default blue. Below is the code. I'm…
kingston
  • 1,553
  • 4
  • 22
  • 42
7
votes
1 answer

UITabBar width not increasing with screen size

I am implementing a UITabBar within another UITabBar. My problem is that, the Second TabBar width remains constant regardless of the screen size. This stands out a lot in the bigger screens. I'm attaching a screenshot to make you understand better.…
Sidharth J Dev
  • 927
  • 1
  • 6
  • 25
7
votes
1 answer

UITabBarController tabBar setItemWidth doesn't work

I have six tabs and need to show them all without More button.jomafer answer says that setItemWidth does that. I called this in AppDelegate but it didn't work. [[UITabBar appearance] setItemWidth:self.window.frame.size.width/6]; I then called…
Nitish
  • 13,845
  • 28
  • 135
  • 263
7
votes
3 answers

Change UITabBarItem Un-selected Color Tint - Swift

Quite simply, I would like to be able to change the colouring of the un-selected items in my tab bar. See below the "Most Viewed" Object barley readable in default colour. Here is code I have tried to…
Fudgey
  • 3,793
  • 7
  • 32
  • 53
7
votes
2 answers

UITableView disappears when UISearchController is active and a new tab is selected

Sorry if the title isn't that clear, found it tricky to summarise. Using Xcode 6 Beta 4, target iOS 8: I have a UITabBarController and one of its controllers is a UITableViewController (TVC). This TVC has a searchController property which is the new…
kylejs
  • 1,128
  • 11
  • 25
7
votes
3 answers

Simple Title not showing up in UINavigationController

I have looked at all of the similar/related questions, but none either a) are exactly my problem or 2) the solutions just don't work. In my appDelegate.m I have in didFinishLaunchingWithOptions JCGRootNavigationController *rnc =…
Chris C
  • 1,012
  • 2
  • 12
  • 19
7
votes
6 answers

UITabBar change background color of one UITabBarItem on iOS7

Can I change the background color of a specific UITabBarItem in a UITabBar? I know how to change all the background of the selected background, using: [[UITabBar appearance] setBarTintColor:[UIColor redColor]]; [[UITabBar appearance]…
Hugues BR
  • 2,238
  • 1
  • 20
  • 26
7
votes
4 answers

UITabBarItem Image is in Blue and not changed

Um using my own TabBarController which is ElWafyatTabBarController basically it inherits from UITabBarController. In ElWafyatTabBarController.m -> viewDidLoad I've created some ViewControllers, Then I created UINavigationController's with…
Atef
  • 2,872
  • 1
  • 36
  • 32
7
votes
6 answers

Selected state of tab bar icon in IOS 7

I'm having fun learning to build my first iPhone app and wonder if someone would kindly point me in the right direction. I have basically added in custom icons for my tab bar (IOS 7). Now I want to add in a custom selected state icon for each of…
user2889540
  • 127
  • 1
  • 5
7
votes
5 answers

How to set title with UITabbarsystemitem

I just wanted to know how i can set a title of a tab bar item using UITabBarSystemItem ? What i did : self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFeatured tag:0]; So to change the title by default instead of…
Lucien
  • 451
  • 4
  • 16
7
votes
3 answers

Custom UITabBarItem without title label

I am trying to create a UITabBar that I will customize using the appearance API. I am stuck on trying to remove the title label from the UITabBarItem and resizing the image to make it centered. If you just delete the title text, there will be…
mrosales
  • 1,543
  • 11
  • 18
7
votes
1 answer

How to change Background color of UITabbar selected tab color to blue?

Hi, I wanted this kind of Tab Selection effect. Instead of Black Background it should be blue one.Is it possible that when i select any tab it should come up with blue background.Please guide me what should i do?I have tried so much but not…
Ankit Vyas
  • 7,507
  • 13
  • 56
  • 89
7
votes
2 answers

Navigate screens by tab bar and buttons

I have the following problem: In my application there's two ways to navigate to others screens: by buttons or by a tab bar. All screens have the tab bar that calls the other screens but the home screen is the one that have buttons but doesn't have…
avmauricio
  • 1,008
  • 1
  • 7
  • 19
7
votes
1 answer

Adding a UITabBar and tabbaritems to the UITabBar through code ( NOTE: I don't want to implement TabBarController )

I have searched a lot and beleive me i have come across many questions and sample codes but none of them fit my requirement , it's crazy how can there not be an answer for this. My requirements specifically:- 1. I want a UITabBar not a…
Sudhanshu
  • 421
  • 2
  • 6
  • 15
6
votes
4 answers

How can i make central raised tabbar item?

At first I want to say that i am new in iPhone application development.I want to make a tabbaritem when i will select a item of the tabbar then it should be look like that Many Thanks In Advance.
Emon
  • 958
  • 3
  • 10
  • 28