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

Set selected tab bar item tint?

I am aware there are similar answers on this topic, but I cant seem to come to any conclusion. I'm using IOS 8 and a tab bar created in app delegate. Is there a way to set the selected tab bar item to a certain colour. preferably without using an…
Luke
  • 55
  • 8
0
votes
1 answer

How to make my tabBar icon to show and tinted

I'm trying to design tab bar icons for an iOS 7 app, so I followed the HIG and I draw a 76x76 401px in white colour and transparent background .png icon that I imported successfully in my project. Then I selected it on the attribute inspector and…
Fotios Tragopoulos
  • 449
  • 1
  • 7
  • 24
0
votes
1 answer

colored images are not occupying the tabbar item on iPhone6 & 6+

I have this code to display colored images in tabbar. _itemOneNavigationController.tabBarItem.image = [[UIImage imageNamed:@"tabbar-trophy"]…
dr.calix
  • 667
  • 8
  • 21
0
votes
0 answers

iOS tabbar:Show tabbar items unselected

i am doing tabbar application having fourths.When i reached first view controller first tabitem is showing highlighted.And when i clicked the second tab second tabitem is highlighted .My problem is when i clicked the button in the second view other…
iosdeveloper
  • 99
  • 3
  • 13
0
votes
2 answers

Push to UIViewController from a UITabBarItem

I encounter a problem using UITabBarItem and UIButton in my application. My button is inside a UITabBarItem. When I press it I want to be pushed to another controller to display a PDF. Here is a piece of code that works in other cases : -…
0
votes
1 answer

How do I deselect a tabBarItem pre segue

I have implemented a tabBar with two tabBarItems. Once presssed the app segues to the new VC, however when I go back to the main VC the tabBarItem is still highlighted as if it has just been pressed. How do I stop this from happening?
Dan
  • 2,304
  • 6
  • 42
  • 69
0
votes
1 answer

Is there a way to disable a UITabBarItem from reloading its first view?

I currently have an app that is a tab bar style app and supports rotation. Everything is great until you hit the tab bar when the device is in landscape and the original view is reloaded and placed back on screen. There is a lot of space and the…
Tanner
  • 813
  • 1
  • 7
  • 12
0
votes
2 answers

UITabbarController having space at bottom and gray line at top in iOS

I have created UITabBarController programatically with 5 tabs like, UIViewController *profileVC = [[UIViewController alloc] init]; UINavigationController *profileNC=[[UINavigationController alloc]initWithRootViewController:profileVC]; UIImage…
Surfer
  • 1,370
  • 3
  • 19
  • 34
0
votes
0 answers

Change colour of unselected Tab Bar Icon in swift

I am trying to change the colour of the unselected tab bar icon. They appear in grey! I managed to change the text but dont know how to change the image colours to white!
Arafat Qureshi
  • 101
  • 4
  • 11
0
votes
2 answers

How to handle UITabbarItem menu Items with Custom Buttons

I having an Application with different tabs(with different ViewControllers). I have used UITabbarController and hide the tabbar, Initially 4 tabs are there. some times I need to show only 2 or 3 different tabs. How can I hide this with buttons(with…
Vineesh TP
  • 7,755
  • 12
  • 66
  • 130
0
votes
1 answer

Expression result unused for UITabBarItem

Im getting the warning "Expression result unused". I dont know why this is showing. It is working correctly. Showing the right title and the images so why the warnings? what can i do to fix these warnings? Thank you all for the…
Timo Cengiz
  • 3,367
  • 4
  • 23
  • 45
0
votes
1 answer

UITabBarItems disappear when setting new frame of UITabBar

In my application when the contact tab is clicked (Middle button), I want to move the UITabBar up from the bottom of the screen and display a view below it. However when I move the UITabBar up with the following code, the UITabBarItems disappear: -…
pls
  • 1,522
  • 2
  • 21
  • 41
0
votes
1 answer

Where/when/how to set tabBarItem font attribute properties?

I am trying to make the font size larger for my tab bar items. I have tried doing this in AppDelegate: MenuTableViewController *mvc = [[MenuTableViewController alloc] init]; mvc.delegate = self; mvc.restorationIdentifier = NSStringFromClass([mvc…
0
votes
2 answers

TabBar button background change WHEN selected

I am a very rookie with iOS development, but after a good amount of searching for my answer, I have not yet been able to find it. I am now considering using pure image views over a tab bar, even though Id love to use the tab bar element. My problem…
awp2004
  • 41
  • 8
0
votes
1 answer

blank Tab Bar item as link

Alright so here is the deal. I have 5 tabs, 3 of them are just links. So when the user clicks on them, it actually brings them to a website using this: - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item{...} So the tab bar item…
NickProvost
  • 367
  • 5
  • 22