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

Tab bar icons showing in simulator but not on App

In an app I published the tab bar titles appear fine, however 2 of the 3 icons don't appear, and I'm not sure why because they all have the same properties. I'm using the most recent version of xcode, below are pictures of the actual app and then…
0
votes
1 answer

UITabBarItem and its UIViewController - a complex issue

I have a bit of complex issue with a UITabBarItem it's UIViewController. Basically I have a series of UIButtons which is a layer on top of UITabBar, if the a UIButton is selected the right UITabBarItem is selected. The complex issue starts when I…
Mush
  • 185
  • 1
  • 2
  • 12
0
votes
0 answers

swiftui tabbar item image profile picture

I want to set the users Profile Picture as the item Image of the Tabbar. What I tried so far is following: ProfileView() .tag(3) .tabItem { if selectedTab == 3 { …
0
votes
1 answer

Dynamic UIView in UITabBaritem

Basically what I have is View with a series of UIButtons and depending on what button is pressed a View with UITabBar is displayed with a certain UITabBarItem selected. This works out fine, however what I want to do is to change the UIView within…
Mush
  • 185
  • 1
  • 2
  • 12
0
votes
1 answer

UITabbarItem name in Caps?

Just wanted to ask, it is allowed to have the UITabbarItem name in Caps. Its not something I have come across before. So is it allowed by Apple? Thanks
Mush
  • 185
  • 1
  • 2
  • 12
0
votes
0 answers

UITabBarController - need to show either of view controller on selecting one of the tabs, depending on certain condition

I have a UITabBarController which has 4 tabs. I want to show different view controllers for second tab bar item. Depending on the condition I want to show the view controllers for that tab bar item. I wrote following code : UITabbarController…
iosDevSan
  • 65
  • 1
  • 13
0
votes
1 answer

How to create Tabbar with default items Dynamically?

I have application in which i have create tab-bar dynamically. Now i want to add default items like contact, more, about, favorite etc. How i add all these item dynamically with Tab-Bar? CGRect myTab =CGRectMake(0,368,320,49); UITabBar *tabBar =…
ram
  • 1,193
  • 1
  • 15
  • 27
0
votes
1 answer

How to Set the Selected Item in a UITabBar From within the Code?

I'm implementing UITabBar in my app. I managed making it work by implementing UITabBarDelegate in my header file and using - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item in my .m file (as explained in this tutorial). Now,…
Ohad Regev
  • 5,641
  • 12
  • 60
  • 84
0
votes
1 answer

How to disable tab bar label only in swift?

I have 5 tab bar items and in the middle, I have a large circular button and I want to disable the label (Workout) of this large button but the color of the label should not be affected. I have disabled the workout tab bar selection by defining the…
0
votes
1 answer

Position 2 UITabBarItem to left and right of screen, with void in the middle

Is there a way to position 2 UITabBarItem to the left and right of a UITabBarController and leave space in the middle as if there was 2 "unused" items? itemPositioning, itemWidth and itemSpacing don't seem to work that way. The code below just…
Will
  • 1,123
  • 1
  • 9
  • 22
0
votes
1 answer

How Can I add Item to Custom NavigationBarItem in SwiftUI

I want to add buttons on the title like here. I did this with SwiftUI NavigationView. However, I had to add SearchController and I added NavigationViewController as custom. Custom NavigationViewController The searchController works correctly, but I…
0
votes
1 answer

iOS - UIActivityIndicatorView in a Tab Bar application

I'm just fishing for some hints on how to implement this. I have a Tab Bar application with 3 tabs and each tab loads some data from the internet. My idea is to get the selected tab item title from the delegate method -didSelectViewController: From…
0
votes
1 answer

Low Quality TabBarItem Image

I have a tabbarcontroller and for one of the tabbaritem images, it displays blurry and of low quality. As this image is a profile image and can vary from user input, I have helper functions to assist in squaring, resizing and rounding the image. I…
Chris
  • 431
  • 8
  • 33
0
votes
1 answer

How to send tableview to top in a collection view cell when clicking on tabbar?

So I have a view controller with a collection view containing two collection view cells in numberOfItemsInSection. There is a tableview in each of the cells. I'm trying to go to the top of the tableview when my certain tab bar item is clicked. My…
0
votes
0 answers

Tabbar Items Text Override in Swift 5

Tabbar items text override in large localization strings. I tried below solution and other possible solution but its not working fine. In below solution if number of lines is 2 than its truncate the string properly and don't override but if number…
Lalit Pratap
  • 119
  • 1
  • 11