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
0 answers

How to custom position tab bar items with the new UITabBarAppearence?

What is the alternate for the below with the new UITabBarAppearence Before UITabBarAppearence. The below implementation worked fine. Title Position: tabBar.items?[0].titlePositionAdjustment = UIOffset(horizontal: -10 , vertical:…
0
votes
1 answer

Activate Tab in UITabbarcontroller from other screen

I am developing an App with content that is crosslinked to other content. The App contains 5 Tabs. Each Tab has it's Tableviews and detailsviews. From the detailview of a Tab, one can proceed to other items from another tab. For Example: Tab 1 >…
0
votes
1 answer

Click on a tab bar item and execute a method in Objective-c

I have a method as below: - (IBAction)GoToMyWebsite:(id)sender { [self.window makeKeyAndVisible]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:cc.BPS_WEB_ADDRESS]]; exit(0); } How can I connect this method to a tab…
Charles Yeung
  • 38,347
  • 30
  • 90
  • 130
0
votes
1 answer

Get UIImageView from UITabBar

How to get imageView from UITabBar specific items. From below code its highlight enter specific section View. I need to highlight More Tab only UIImageView for CoachMark. How to get UIImageView value from UITabBar ? guard let view =…
kiran
  • 4,285
  • 7
  • 53
  • 98
0
votes
0 answers

How to have Tab Bar selection more tab with Overlaycontroller?

How to achieve tab bar for more option like shown in below figure I search for it, the result not found. Is there any cocoapods associated to it. For have overlayController on More Item in TabbarController? You feeds are highly appreciated.
kiran
  • 4,285
  • 7
  • 53
  • 98
0
votes
0 answers

Add tab bar item indicator upper line

I try to set a indicator line on the top of the item tab bar, I set tabBar.frame.minY and sum line height but I can't get it. class TabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() …
LgSus97
  • 93
  • 9
0
votes
1 answer

Is it possible to add same UIViewController Class to another tab

Is it possible to added same FirstViewController class to UITabBarController -> tabBar -> 4 items added. ZeroTabBarController -> FirstViewController -> FirstViewController -> ThirdTabBarController.
kiran
  • 4,285
  • 7
  • 53
  • 98
0
votes
1 answer

When TabBarItem is pressed scroll back to top (for example like on Reddit app)

I'm kinda stuck trying to implement a 'Scroll to top' function when I press a TabBarItem. What I made so far is a Frankenstein code I found on multiple stackoverflow posts, it works but only until a certain point. This is what I did so far is: class…
Sizzle
  • 93
  • 1
  • 4
0
votes
1 answer

Different tabBaritems for each view

i want different tabBaritems in each of my view currently didnt have any idea from where to start can any one give me the guideline so that i can get started on that plz help
0
votes
0 answers

UITabBar accessibility ios

[Q] Can UIAccessibilityTraits.tabBar only be applied to UITabBar? Is there any way to make UIViews have tabBar UIAccessibilityTraits? Works fine with UITabBarItems in UITabBar. // This works. No problem let first = UITabBarItem(title: "firstTab",…
0
votes
1 answer

Styling the unselectedItemTintColor UITabBar with iOS 15

I'm having trouble setting the tabbar.unselectedItemTintColor. There is some weird conflict when I try to set both the unselectedItemTintColor and the scrollEdgeAppearance. I can run this code and things work as expected: UITabBarController…
Chase Roberts
  • 9,082
  • 13
  • 73
  • 131
0
votes
1 answer

Identify UITabBarItems view controller instances the proper way

I have an application with a Tab Bar to open different view controllers like this: firstViewController = [[UITableViewController alloc] init]; UINavigationController *firstNavigationController = [[UINavigationController alloc]…
0
votes
1 answer

Force UITabBarItem's image to a specific size

I have a UITabBarController, initialized by a xib file. all it's view controllers are initialized by a xib file as well. In apple's HIG it is specified that a High-resolution tab bar icon should be approximately 60x60. I have a set of 52x52 icons,…
Niv
  • 2,294
  • 5
  • 29
  • 41
0
votes
1 answer

Is there any delegate that serves the purpose of tabBar willSelectItem?

I need to do some UI tasks when user selects a UI tab item. Following delegate is available, -(void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item Although, to answer for my particular question the internal UI transition issue is not…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
0
votes
1 answer

How to add a TabBarItem in specific index of UITabBarController?

How to add a TabBarItem in specific index of UITabBarController? I can add a new tabbar item using, [self.tabBarItems addObject:nav]; It always adds in the last. I need to add the tabbar item in a specific index position. How can I do so?