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
2
votes
1 answer

Can't change TabBar Item icon that is set in Storyboard

In my app, one of the TabBar Items needs a custom icon, depending on context within the app. I'm using this code to accomplish that: item1 = [[UITabBarItem alloc] initWithTitle:@"Jij" image:inactiveIcon selectedImage:activeIcon]; and that works…
Sjakelien
  • 2,255
  • 3
  • 25
  • 43
2
votes
1 answer

How to programmatically tap Tabbar item (not selectedIndex)

here is resume of my app: I have tab bar. When user tap on the tabbar item appropriate view controller is presented by "slide-to-side" animation (like in iP homescreen). Code is in method tabBarController(tabBarController: UITabBarController,…
Lachtan
  • 4,803
  • 6
  • 28
  • 34
2
votes
1 answer

How Can I handle an UITabBarItem clicked twice consecutive and dismiss segues?

My UITabBarController caching everything about before selected item, It's nice but I want to dismiss each segue presented by me When I have clicked displayed view's item, twice consecutive same page. How and What I need to do to provide this case?…
iamburak
  • 3,508
  • 4
  • 34
  • 65
2
votes
1 answer

tabBarController don't fire cellForRowAtIndexPath UITableViewController

I have tabBarController in my app. when tap another tabBar that is UITableViewController the view is empty and cellForRowAtIndexPath dosen't fire(numberOfRowsInSection not zero or nil). Code is: - (void)tabBarController:(UITabBarController…
Sina
  • 849
  • 9
  • 21
2
votes
1 answer

UITabBarItem Does Not Dim on First Disabled Load

I can easily enable and disable the TabBarItems in my App which have no values or content. Works like a charm. I do want to keep all Tabs in order to show that this feature or content will be available on other views throughout the App because this…
mic
  • 23
  • 2
2
votes
1 answer

Hiding (not removing) A UITabBarController UITabBarItem

I need to hide a button on the tab bar, but still have it accessible by code as needed. I know I can completely remove the button, but then I cannot access that view anymore. So in my case, I want my home screen to be visible when the app first…
James
  • 3,765
  • 4
  • 48
  • 79
2
votes
2 answers

tab bar item not showing in storyboard

I'm trying to add a tab bar controller on an application, and it works fine: I can switch between pages and use the tab bar when I try the app. But I cant see the tab bar items in the storyboard, therefore I cant edit them (I need to set a name and…
Gargantua
  • 21
  • 5
2
votes
1 answer

Tab bar with Image & tint color

I want to change image on selected UITabBarButton or change color of whole tab button(square). Check the reference. Some apple native app has this type of image & colour,can anyone provide solution? I found this link but it`s little different from…
Jaymin Raval
  • 205
  • 2
  • 19
2
votes
2 answers

Present a popover from a UITabBarItem in swift

I found a lot of examples showing how to present a popover from a UIBarButtonItem, but I want to know how to present it from a UITabBarItem instead. Here's what I have so far let selectedItem = self.menuTabBar.items![3] let menuViewController:…
josealvarado111
  • 565
  • 1
  • 9
  • 24
2
votes
0 answers

UIAppearance Customizing UITabBarItem using a category/extension is not working

I have a custom category on UITabBarItem that lets me customize the badge properties. All my code related to the functionality of that is working fine. However, UIAppearance is not working. My methods never get called and if I add [[UITabBarItem…
2
votes
0 answers

Tab bar item icons appear darker

When setting the icons for the tab bar items it seems that the icons are appearing darker for some reason. Examples below Tab bar in app What it should be like from designs As you can see in the second example the colours are softer and lighter…
Tunds
  • 1,804
  • 2
  • 15
  • 30
2
votes
2 answers

Change title of UItabbaritem in other view?

How do I change the UITabbaritem titles when starting the App? I got a UITabBar with 4 tabs. I want the user to be able to change between two different languages. If the user chooses a different language I need to set a different title to the…
CCDEV
  • 371
  • 1
  • 5
  • 16
2
votes
0 answers

iOS) How to add a separator at tabbar dividing two tabbarItems

I want to customize tabbarItem having footer line meaning it is selected and have a thin line separating two tabbaritems. But even though searching at stackoverflow, it shows very limit information and low quality. My tabbar is simple intuitively,…
user2649058
2
votes
1 answer

UITabBarItem - Background color in iOS 9

I am trying to change background color of my UITabBarItem this way: UITabBar.appearance().selectionIndicatorImage = UIImage.imageWithColor(UIColor.blackColor()) Here's extension for UIImage: extension UIImage { class func imageWithColor(color:…
Nikita Zernov
  • 5,465
  • 6
  • 39
  • 70
2
votes
3 answers

Swift UITabBarItem as a UIButton

I tried to implement a UITabBar and now I am not able to retreive a callback from a method when an item was selected. Is there a possibillity to just create a @IBAction func therefore? Or do I need to do something else?