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

UITabBarController Does not shows tabbarItems name

I am creating app based on UTabbarController. I have creates that tab bar programmatically. Everything is running fine except I can not see the tabBatItem title. I have initialized everything properly, but when application launches all I can see is…
slonkar
  • 4,055
  • 8
  • 39
  • 63
0
votes
1 answer

xCode How to programmatically call UITabbar from a tab/subview/subclass using UIButton?

In my UITabbar Application (created using xCode) I have 6 tab buttons. In the first tab I have 5 UIButttons which should load other 5 corresponding tabs when clicked on the buttons. First one is the index/home page others are the different modules…
Kris
  • 35
  • 2
  • 8
0
votes
2 answers

disable all UITabBarItems on launch of iPhone application

My requirements is that whenever the application launches, i need to show a company Logo fill screen image view with the UITabBar at the bottom of screen with all UITabBarItems disabled. The user will continue to see this logo view till he chooses…
Inforeqd51 A
  • 107
  • 1
  • 6
0
votes
2 answers

How to create image contains a text for UITabBarItem

I am trying to put an image that contains a text on UITabBarItem. I went to our Graphics designer and asked him to create an image for me that contains a text "Summary". He actually did. ( a png image).. but when I put inside the app, I saw a…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
0
votes
0 answers

How to add these capsule shape behind the selected tab bar item image

I want to make a tab bar with the following features: selectd tab-bar item has this capsule shape around it's icon only , link to desired tab-bar I am creating the tab bar programmatically. Can you help me with the code? Screenshots of the what i…
Ayoub
  • 1
  • 1
0
votes
0 answers

Swift change corner radius of image in TabBar using url data

I am trying to change the corner radius of an image in the tab bar after updating the image from data retrieved by the url. I tried implementing layer.cornerRadius in viewDidAppear along with viewDidLayoutSubviews(). The image shows up as expected…
0
votes
1 answer

In iPad the title text of UITabBaritems of my app is showing truncated, Working fine in iPhone

Tabbar item text is showing truncated on an iPad but on an iPhone it's Working fine. Here is my Code: class HomeTabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() let tabBarAppearnace =…
0
votes
2 answers

Is it possible to have UITabBarItem not having an image space on it?

I know it is optional to add an image on the UITabBarItem but in all cases, the text appears at the bottom of the Button in an ugly way. So, my question is, is there a way to centralize the text vertically on the UITabBarItem ?
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
0
votes
2 answers

UITabBarController with views more than the tabs

I've 4 views that I need to show in 3 tabs in a UITab bar The situation is, in a Navigation-based iPhone app, I've a button that the user clicks that take him to a view (view1) with 3 tabs at the button, each tab he clicks will take him to a new…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
0
votes
1 answer

Prevent screen change when I press tab which is already selected

I have a CustomTabBarController with 4 tabs. When I am inside the 3rd tab, let's say I have a screen called A and I have a button which takes me a second screen called B. So, when I am on screen B and I am pressing the 3rd tab, I want to stay on…
Louiza A
  • 23
  • 6
0
votes
1 answer

How to set green dot badge to a particular tabBarItem in iOS Swift?

Currently, I'm trying to set the green dot this way, but end result is always a red badge. xxxx.tabBarItem.badgeColor = .clear xxxx.tabBarItem.badge value = "●" let attribute : [NSAttributedString.Key : Any] =…
Sunil Targe
  • 7,251
  • 5
  • 49
  • 80
0
votes
0 answers

How to change the position of an UITabBarItem and its title (Storyboard)

I am currently trying to build an app with Swift that has an UITabBarController. I have added a screenshot down below to show the result that I have right now. Screenshot when running the app My goal is simple. I want to move the green plus symbol a…
0
votes
0 answers

How to create / capture image or snapshot of UITTabBarItems?

I would like to create a walk through like in this image: Creating the semi-transparent overlay is no big deal of cause. But how to highlight the tabBar item as shown? 1. Try My first try was to create a snapshot of the tab bar item and place it on…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
0
votes
1 answer

Xcode: Loading TabBarItem titles after ordering

I'm using this [tutorial] to save user's customized TabBarItems order as my app has more than 5 tabs The tutorial's concept is to save the TabBarItem titles in the NSUserDefault and load them next time app is opened. It's working great for english…
DeZigny
  • 1,953
  • 4
  • 19
  • 29
0
votes
0 answers

Bounce animation on tabbar selection

I am trying to have the images on my tab bar do a bounce animation when they are selected by the user, but so far I have only been able to get them to bounce if the user is on the current tab and then they re-select the tab. Is there a way to make…
A5omic
  • 65
  • 8