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

How to create a tab bar using SingleViewApplication iOS?

I am new in iOS and my requirement is to implement Tab bar. I have 5 tab bar items and for each item there is different Screen(UIViewController). I have a HomeViewController and remaining 4 ViewControllers. I have to show all UIViewControllers …
Kishor Pahalwani
  • 1,010
  • 1
  • 23
  • 53
0
votes
3 answers

Programmatically change the highlighted state of a UITabBarItem - Objective C

I would like to know how to make the UITabBarItem be highlighted when I choose to do so in the program. Is this possible? THanks
Lilz
  • 4,013
  • 13
  • 61
  • 95
0
votes
2 answers

Generate need counts of tabBar.items in swift

I need advice in situation: I have several JSON where may be several types of transport are (for example, only train (first variant) or train and bus (second variant). I know that there are only 3 types of transport maximum. So, I'd like to show…
Vadim Nikolaev
  • 2,132
  • 17
  • 34
0
votes
3 answers

how to correct issue with uitabbar buttons overlap

I have an issue that pops up intermittently. The buttons on my tabbar overlap as shown in the screenshot. Any idea why this is happening and how to fix it?
Mc.Stever
  • 782
  • 6
  • 16
0
votes
1 answer

iOS Tab item fuzzy image

The size of the original fuzzier image(tab2) is 2x: 108 × 88 pixels, 3x: 162 × 132 pixels, the normal image(tab1, tab3) size is 2x: 52 × 48 pixels, 3x: 78 × 72 pixels. I run the app on iPhone7 simulator with iOS 10, Xcode 8.1, the result: The…
Raymond Liao
  • 1,799
  • 3
  • 20
  • 32
0
votes
1 answer

Line shown on top of UITabBar

I have a custom UITabBar containing 5 buttons; the UITabBarItem in the middle is an image. This button is bigger than the remaining UITabBarItems to the left and right. On iOS9 everything worked fine, however on iOS10 there is a line being shown…
0
votes
1 answer

ios 10 - UITabBarController UITabBarItem - items slow to render

Upon login the initial display of my UI worked fine in iOS 9 with the UITabBarController showing all icons appropriately but in iOS 10 there is a noticeable delay of up to 5 - 10 seconds without any error in the log. I've posted a bug to Apple ID-…
JT_Dylan
  • 133
  • 4
  • 15
0
votes
0 answers

TabItem ViewController Transition Style

I'm trying to set to a UITabItem's view controller the Cover Vertical Transition style. I've set it up when setting the tab bar view controllers and also in the view controller's viewWillAppear but it doesn't work. I've tried…
0
votes
1 answer

objective-c custom UITabBarItem @2x

is it possible to assign a highres custom uitabbaritem image? UIImage *img; img = [UIImage imageNamed:@"TabIcon51@2x.png"]; self.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"more" image:img tag:5]; this doesnt work. is there a…
Alex Milde
  • 511
  • 1
  • 7
  • 21
0
votes
1 answer

How to use SWRevealViewController to open a side menu from a UITabBarItem in Swift

I am working on a project that I want to incorporate SWRevealViewController with. I was able to get my slide in menu showing with it showing when clicking on the menu button with code below: if self.revealViewController() != nil { …
0
votes
1 answer

passing Events from UIButton to TabBarItem

i wanted to make my UITabBarItem's size Bigger then other buttons so i tried this in Subclass of TabBarController : var button = UIButton(type: .Custom) button.frame = CGRectMake(0.0, 0.0, buttonImage.size.width,…
remy boys
  • 2,928
  • 5
  • 36
  • 65
0
votes
1 answer

Two tab bar items with one view controller

I really need your help. I know that what my question contains not so good UI practices, but I need to do it... In my app I have TabBarController with four items. The first item is "Channel" item, the third item is "Search" item. So, when users…
Roman Romanenko
  • 736
  • 9
  • 24
0
votes
3 answers

UIBarButtonItems created programatically with Swift, not visible

I'm not sure why this piece of code which is supposed to embed two bar button items in a navigation controller's toolbar won't work. The toolbar itself is visible when I run my code, but not the bar button items. What am I doing wrong here? Thanks…
0
votes
1 answer

Image with color in React Native TabbarIOS.item

I've been trying to accomplish a tabbed app similar to the image using TabbarIOS and TabbarIOS.item in RN. I've accomplished adding the image but the color is changed to the default grey and only changes to blue when selected. Is there a way to…
Ismailp
  • 2,333
  • 4
  • 37
  • 66
0
votes
1 answer

setTitleTextAttributes not working with NSForegroundColorAttributeName

Here is what I am doing in my AppDelegate self.tabBarController.delegate = self; NSDictionary *unSelectedAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [Utility primaryColor],…
user1324887
  • 632
  • 3
  • 11
  • 32