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

How to set Badge Value in CustomTabbarItem

I am using a CustomTabbarItem and I want to implement the badge Value on the specific tabbarItem. Can anyone help me and provide me code, so that I put it in my customTabbar. I am new in Iphone, so feel free to help.
Khalid Usman
  • 1,272
  • 1
  • 13
  • 32
-1
votes
1 answer

Is there anyway to add same scroll menubar at the navigation bar?

I have already posted my this problem another time but i have not got my answer perfectly.Here i am going to explain my problem another time, it is very important for me so at any cost i have to solve it.Now my problem is... Suppose, I have 4…
Emon
  • 958
  • 3
  • 10
  • 28
-1
votes
1 answer

tarBarItem icon got chopped off on Iphone

tabBarController = [[UITabBarController alloc] initWithNibName:nil bundle:nil]; tabBarController.delegate = self; UINavigationController *searchNav = [[[UINavigationController alloc] initWithRootViewController:search]…
lilzz
  • 5,243
  • 14
  • 59
  • 87
-1
votes
1 answer

Add a circle as a selection indicator above UITabbarItem in Swift

I want to add a selection indicator to a UITabbarItem in Swift, like the following image. I tried to code below but I cannot add the circle above the UITabBar. On viewDidLoad: let tabBar = self.tabBarController!.tabBar …
Louiza A
  • 23
  • 6
-1
votes
1 answer

TabBar pop-up menu

I would like to know how to create the below menu when I click on a tabBarItem: If I understood correctly I have to add function with frame on this function: override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) { if item.title…
-1
votes
1 answer

How to shorten tab bar config codes?

I have a configuration code for UITabBarItem but it is too much. Is there any way to shorten this code? I couldn't find any extension for that. let selectedColor = #colorLiteral(red: 0.3921568627, green: 0.168627451, blue: 0.4509803922, alpha:…
grative
  • 21
  • 1
  • 4
-1
votes
1 answer

Localize UITabBarItem in RxSwift

How can I localize UITabBarItem and add set images for selected and unselected case in RxSwift ?
-1
votes
1 answer

How declare action of Tabbar item?

I have drag a Tab-Bar in nib file. Now i want to open new view when click on tab bar item. Without using tab-Bar controller i want to use tab bar and action on tab bar item. For tab bar i said earlier tab-bar i drag that and next is that How do…
ram
  • 1,193
  • 1
  • 15
  • 27
-1
votes
1 answer

Creating a custom badge for a UITabBarItem

I have a blue star (UIImage) which I want to add to a UITabBarItem whenever the user receives an in-app message. Right now, I am using the standard dot: self.tabs.tabBar.items[0].badgeValue = "1"; self.tabs.tabBar.items[0].badgeColor =…
-1
votes
2 answers

iOS - Getting frame of the UIImageView/UIImage of a UITabBarItem

I am trying to get the frame of an image shown in a UITaBarItem. I can get the view of any UITabBarItem but can't able to get the frame of only image part of any UITabBarItem. Adding an screenshot of my views
Md. Sulayman
  • 781
  • 8
  • 30
-1
votes
2 answers

How to stop Tab Bar Item images' background width changing when tapped?

When I click on tab bar item images their background (or whatever it is) width is increased. As you can see in the screenshot below image size is fixed but background width increases after I tap on any of them. Does anyone know how to stop it…
DaveMS
  • 157
  • 2
  • 13
-1
votes
1 answer

Create and Initialise Custom UITabBarItem Class

I am building an application with four UITabBarItems. They all should look the same. Instead of customising them in their respective UIViewController, I am trying to build a custom UITabBarItem class and have the UITabBarItems inherit from it. So…
marco
  • 656
  • 2
  • 6
  • 22
-1
votes
1 answer

Tab Bar Item oversizing when using free PNG icon

I'm currently trying to set the tab bar item (tab image) for my apps. I'm using one of the many PNG CC/Free icons from the site; but when i attempt to set them through storyboard, i'm getting a visual bug where they are oversize. I wanted to know…
BitBeast
  • 33
  • 7
-1
votes
4 answers

Change background color of UITabBarItem in Swift

I just want to change the background colour of one of the tab bat items. I found many links but didn't get any help from that. Requirement: And, this is the way I setup my tab bar items let myTabBarItem3 = (self.tabBar.items?[2])! as…
Moin Shirazi
  • 4,372
  • 2
  • 26
  • 38
-1
votes
4 answers

Pushing two Different view controllers in one button action-iOS

My iOS application has four tabs that displays different information. In my second tab viewController I have one button lets name it as button1 in that button1 action i have navigated to SignInViewController screen and in my third tab view…
hani
  • 21
  • 6