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

In iOS 13 UITabBarItem's standardAppearance is applied to all other items

I'm trying to do a simple thing on iOS 13 - the last tab bar item should always be displayed in a different color. I tried to use the new UITabBarItem.standardAppearance member. Here are my codes: // first, set the default colors for the whole tab…
frangulyan
  • 3,580
  • 4
  • 36
  • 64
5
votes
1 answer

iOS Change badge color inside UIMoreNavigationController in UITabBarController

I customize the background color and its tint color with this code: var blackBGColor = new UIColor(new nfloat(40) / 255f, new nfloat(40) / 255f, new nfloat(40) / 255f,…
currarpickt
  • 2,290
  • 4
  • 24
  • 39
5
votes
3 answers

How to create uitabbar item on swift without a View Controller lined to it

So my problem is I'm creating a UITabBarController without a storyboard and I'm stuck with how to create a UITabBar item without a Viewcontroller. Because what I want to do is the 2nd item of my UITabBarItem is an action not presenting a view…
Desmond A
  • 113
  • 1
  • 3
  • 7
5
votes
5 answers

Tap UITabBarItem To Scroll To Top Like Instagram and Twitter

I'm having issues making this feature work and i would like to get some help. My hierarchy is TabBarController -> Navigation Controller -> TableViewController What i want is if you are on current tab and you scrolled down you will be able to tap the…
Newbie Questions
  • 463
  • 1
  • 11
  • 31
5
votes
3 answers

Remove UITabBarItem

How can I remove a UITabBarItem from a UITabBar? I haven't tried anything, because I haven't found anything from Google searches or the documentation for UITabBar, UITabBarController, or UITabBarItem. Thanks in advance! :)
esqew
  • 42,425
  • 27
  • 92
  • 132
5
votes
1 answer

Unable to enable letter spacing (kerning) on UITabBarItem

I am trying to enable Text Kerning (increase Letter spacing) on UITabBarItem title labels. But providing the NSKernAttributeName attribute for the UITabBarItem does not make any difference. The other two attributes, however, are working:…
5
votes
3 answers

iphone change tab bar item on button click

I have 4 tabs in my iphone application. When user will click a button in tab-1, I want to move/switch user to another tab suppose tab-2. How to do that?
Ruchir Shah
  • 898
  • 3
  • 13
  • 31
5
votes
1 answer

How to add a badge to the system generated "More" UITabBarItem

My app has 6 menu items, so the OS shows the first 4, then shows a "More" item that links to a screen where the user can select the other two. My problem is that I want to show a badge on the More item so that the user knows that one of the menu…
Mark Hoffman
  • 413
  • 5
  • 10
5
votes
3 answers

how to add UITabBarItem programmatically?

In my application, i have added UITabBarController in "Storyborad". But now i want to add UITabBarItem programmatically. Let's say there are 5 buttons and when ever user click on that button my UITabBarController is called. There are total 5 tab in…
5
votes
6 answers

Tabbar item image doesn't appear

I have an issue with the images of tabbar items. I set an image on each tabbar item but when i run the app, the only image that appears is that of the first tabbar item. Images of others tabbar items don't appear until i select one of these tabs.…
hoya21
  • 893
  • 7
  • 24
5
votes
2 answers

Xcode 4.6.3 - Can't select tab bar item on Storyboard?

I'm currently on Xcode 4.6.3. I used storyboards in my project. Inside the storyboard is a tab bar controller and two table view controllers. I have the tab bar controller as the root view and I have it linked up with the two table view controllers…
aresz
  • 2,589
  • 6
  • 34
  • 51
5
votes
1 answer

Hide tab bar item and aligning other tab items

In my app, i have 4 tab bar items. Iam adding these 4 tab bar items in XIB file. Initially i have to show 3 tab bar items and after sync i have to show 4th tab bar item in my app. So for this, i am hiding 4th Tab bar item using following…
Coder
  • 1,661
  • 4
  • 27
  • 50
5
votes
2 answers

Add controller to UITabBarController without new item appearing in the tab bar

I have an application with UITabBarController as its main controller. When user taps a button(not in the tab bar, just some other button), I want to add new UIViewController inside my UITabBarController and show it, but I don't want for new…
lambdas
  • 3,990
  • 2
  • 29
  • 54
5
votes
2 answers

why does selecting a tabbarController index programatically doesnt call delegate method

when we touch the tabbaritem of the tabbarcontroller the delegate methods are called: -(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController; -…
yunas
  • 4,143
  • 1
  • 32
  • 38
5
votes
1 answer

Set BadgeValue for ToolbarItems.UIBarButtonItem in MonoTouch

I'm pretty new to MonoTouch development, but I've been using the handy ToolbarItems property on the UIViewController to show some toolbar buttons and now I'm looking for a way to set the BadgeValue on some of those buttons. It seems that the…
Johan Danforth
  • 4,469
  • 6
  • 37
  • 36