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

Make custom selected tab bar Item in iOS Swift

I am working on an application using Swift which needs to have a TabBarController and when user will select a tab then that particular tab bar item shows a 3d visual effect (Although it will be an static image I guess) which contains shadow and that…
Ankush
  • 2,405
  • 3
  • 22
  • 45
1
vote
2 answers

UIColor of tab bar items unselected and changing tabbar color

I see by using the setTintColor on a tabBar I can change the selected item color. How do I change the unselected tabBarItem color and text? If I can't change it easily, what is the default gray color used (in RGB)? Thanks.
cdub
  • 24,555
  • 57
  • 174
  • 303
1
vote
1 answer

Change the color of selected tab bar icon in swift

I found out how to change the color of the text of the tab bar item when it is selected, but I am wondering how to do the same for the icon. I can't seem to find the solution on SO for swift, and that works. My icon has uploaded correctly, and when…
Anthony Saltarelli
  • 345
  • 1
  • 4
  • 15
1
vote
0 answers

Selected image of UITabBarItem does not fit the size of tab Swift iOS8+

I am trying to implement an UITabBarController with 2 UITabBarItems . I added in storyboard the TabBarController. I have on important issue with selectedImage property of UITabBarItem class. The width of selectedImage does not fit the tab. I…
Bonnke
  • 896
  • 1
  • 12
  • 24
1
vote
2 answers

Show UITabBar only on UITabBarController.viewControllers

I'm doing it in all tab controllers: (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.tabBarController.tabBar.hidden = NO; } - (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; …
1
vote
2 answers

tabBarItem's title didn't appear

i am using a tab bar in a view controller and in "viewDidLoad" method i declare it: normalView =[[NormalViewController alloc] initWithSigne:[[normalAstro objectAtIndex:signIndex]objectForKey :@"name"] andDescription:[[normalAstro…
Mejdi Lassidi
  • 999
  • 10
  • 22
1
vote
0 answers

iOS custom UITabBar with Separators

I have to implement a custom Keyboard exactly like this one. For the categories, I've used a UITabBar component. That's my current status: The problem is that I don't know how to add the Separator (left/right) and the border at the bottom when…
Ale
  • 2,282
  • 5
  • 38
  • 67
1
vote
1 answer

Changing the title of a UITabBarItem without changing the view controller's title

I wish to have it so the view controller's title is different to the tab bar item's title. I have tried the following, inside viewDidLoad [self setTitle:@"My title"]; [[self tabBarItem] setTitle:@"Search"]; But the call to the second function…
Chris James
  • 11,571
  • 11
  • 61
  • 89
1
vote
0 answers

Can I change the text and icon colors for every UITabBarItem in iOS

I checked this question, How can I change the text and icon colors for tabBarItems in iOS 7? but it doesn't give me a solution for iOS 6 nor does it give me a solution so that each UITabBarItem will have a different background color and change…
user580950
  • 3,558
  • 12
  • 49
  • 94
1
vote
1 answer

How use UITabBar without UITabBarController

I need to use UITabBar with a UITabBarItem, but I need to do this without using a UITabBarController in the storyboard. I added a TabBar and a TabBarItem in my firstViewController, but I can't trigger or add an event method in my class. What is the…
Psycho80
  • 79
  • 1
  • 5
1
vote
1 answer

UITabBarItem image is changing image when clicked

Im going to try to explain my problem as good as possible. When my application starts it checks this in the appdelegate class: if([[NSUserDefaults standardUserDefaults] boolForKey:@"checkboxClicked"]){ tabBarItem3.image = [UIImage…
Timo Cengiz
  • 3,367
  • 4
  • 23
  • 45
1
vote
1 answer

iOS: Show login viewcontroller or "another" viewcontroller inside of UITabbarController?

I have a tabbar with 5 tabs. 3 of these tabs requires authentication by having an account. I know one solution is to present a modal viewcontroller when pressing one of these tabs. I wish to present the login viewcontroller inside of the tabs…
user023
  • 1,450
  • 2
  • 17
  • 21
1
vote
1 answer

UITabBarItem not show all image or show image with a delay

all images I put in Images.xcassets, so I can use images by [UIImage imageNamed:]. but when I open App, the tabBar not show all icons before I switch the tabItem or wait a moment. - (BOOL)application:(UIApplication *)application…
NikSun
  • 45
  • 4
1
vote
1 answer

How do you keep a UIButton on top (like a z-index) of a UITabBar

I have a UITabBarController with UITabBarItems . I add a button on top of that which works fine until you use bottomBarHide method. Then the button appears underneath the tab bar. How do I fix this?
cdub
  • 24,555
  • 57
  • 174
  • 303
1
vote
1 answer

UITabBarItem invisible in iOS 7 with UISplitViewController

I have a little problem easily reproductible with Xcode 6.1.1 : Create a new Tabbed application project Set the deployment target to iOS 7 Go into the storyboard and drag and drop a UISplitViewController Link it to the UITabBarController Edit the…
Zaphod
  • 6,758
  • 3
  • 40
  • 60