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

(iOS 9 and below) How do you specify tab bar item text color during user interactions (both selected and normal state)

I need to know if there is a way to change the tab bar item title / text (not the image because it is working perfectly fine just by specifying tintColor) during actual user interaction? Like changing it's color when a certain button is tapped.…
Axel
  • 685
  • 5
  • 14
0
votes
1 answer

Can i only display text in tab bar item and change the style and position

I add a tab bar in storyboard, and do not want to set an image to the tab bar item, and like the following: How can I change the font and the position for the title of the bar item in storybord?
Leo
  • 835
  • 1
  • 12
  • 31
0
votes
3 answers

Set Action for UITabBarItem

How can i set an action for my UITabBarItem ? Can i connect it from storyboard to code somehow? or programmatically? And if so how can it be done? My hierarchy is UITabBarController -> UINavigationController -> UITabBarItem Sorry for the noobish…
Newbie Questions
  • 463
  • 1
  • 11
  • 31
0
votes
1 answer

UITabBarItem action giving NSException

I have a custom UITabBar with 4 UITabBarItems as given below. Here are the relevant parts of my code: class BaseItemViewController: UIViewController,UITabBarDelegate{ @IBOutlet var customTabBar: UITabBar! in…
toing_toing
  • 2,334
  • 1
  • 37
  • 79
0
votes
1 answer

UITabbar orientation problem

I am working on orientation work on uitabbar application. I am using 5 tabbar item in tabbar. I want only 4 tab bar item to be rotated in both Landscape and potrait. but the issue is when i put "return no" to shouldAutorotateToInterfaceOrientation…
sathish kumar
  • 1,061
  • 6
  • 16
  • 31
0
votes
1 answer

Tabbar item images not loaded first time

i am using tabbarcontroller in my project. Here is my storyboard In all view controllers tabbar item, I set images like below I make a class of tabbarcontroller and do coding below UITabBar *tabBar = self.tabBar; UITabBarItem *tabBarItem1…
Jitendra Modi
  • 2,344
  • 12
  • 34
0
votes
1 answer

how to customize tabbar items which is added on storyboard

I made UITabbar controller and make 5 tabbar buttons on Storyboard. But I cannot control image sizes and colors in tabbar items. And I want to customize button colors and shapes using PNG files, not using default colors. But the below code is not…
김동현
  • 91
  • 3
  • 14
0
votes
2 answers

barButtonItem on tabBarController

i am wanting to add a barButtonItem onto a tabBar so i don't have to use a navigation controller at the top of the screen. My ViewControllers are embedded in a tabBarController: And i want to add a barButton on each viewcontroller e.g.: and them…
Pippo
  • 1,439
  • 1
  • 18
  • 35
0
votes
0 answers

Tab Bar Buttons become big

I have a problem with Tab bar buttons. As you can see in the picture below, it looks normal in the storyboard. However, when I run the simulator and click one of the tab bar buttons, they become big like this: Why does it happen? and How can I fix…
miki_ninn
  • 31
  • 2
0
votes
1 answer

Add Tabbar Item Image from one UIImage issue

I'm Newbie in Swift. I have a question. When I add Tabbar Item image from one UIImage, then Nothing show up. Although, Not in Tabbar Item, Image appear well and image that load from asset to tab bar item works well. I already resize that thing, and…
김민섭
  • 33
  • 1
  • 5
0
votes
1 answer

Customizing UITabBarItem

I need to customize UITabBarItem where I need to add a custom image but its a circular image and the boundary should expand beyond the UITabBar where it should display some of the parts of the button in the UIView of the application. Thank you
Dilshan
  • 3,231
  • 4
  • 39
  • 50
0
votes
3 answers

tab bar icons appear as blue squares

Well, the title says most of it. I've tried with icon sets of 75/50/25 px and 72/48/24 px, as stated by different guides, but when I run the app in Xcode, the icons appear as (appropriately sized) blue squares. The icons are all black and white .png…
Robert
  • 31
  • 6
0
votes
1 answer

(Swift) Tab Bar Item: Custom Selected Image with Rendering asOriginal is Not Showing

First of all, I'm a newbie to Swift so apologies if I'm missing something obvious or using the wrong terminology. Objective: set tab bar item selected image to custom image. The following setup works (selected item is custom image): |…
0
votes
1 answer

Combine 2 ViewControllers in a single tab of TabBarView and allow back and forth switching within the same tab

So I want to do something like this in Xcode (using Swift): There should be a TabBar VC that contains 2 VCs under a single tab. But when one of the tabs is opened, it should show the second VC icon and allow me to switch back and forth among the 2…
0
votes
1 answer

How to navigate view controller using UITabBar in swift?

I have a UITabBarController and 4 UITabBarItem. I want to navigate through them programmatically. I'm looking forward on how to do it.. (Swift)
Mahil Arasu
  • 105
  • 1
  • 8