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 Customize UITabBarItem

How to customize UITabBarItem, like Instangram app Thanks
Michael Chen
  • 883
  • 1
  • 7
  • 5
0
votes
2 answers

Swift disable tab bar item with function

I have an item in my tab bar that shouldn't be enabled until certain conditions are met. I can disable that item in viewDidLoad() from my subclassed UITabBarController, but I'm having trouble creating a function that I can call when needed. Below is…
squarehippo10
  • 1,855
  • 1
  • 15
  • 45
0
votes
2 answers

UITabBarItem - All items displays the selectedImage on first launch

I have a UITabBar with 4 UITabBarItems and each item have an image and a selectedimage. Normally I want to have that : But on first launch, the app displays all selected images : Then, if I kill the app, I have the good state (first image). Why…
BSK-Team
  • 1,750
  • 1
  • 19
  • 37
0
votes
1 answer

Swift Tab Bar Badge

I have 2 UIViewController 1- UIViewController with UICollectionView. In cell I have UIButton and UILabel. When I press UIButton I have save text from UILabel to UserDefaults array. (Main screen) 2- UIViewController When I launch the app I want to…
Andrew0
  • 37
  • 1
  • 8
0
votes
1 answer

Change Tab Bar Item Image inset by accessing Tab Bar Items in AppDelegate

I want to align the tab bar item images in my tab bar. I know I can do it in IB which I did and it worked. However I want to do it programatically. I'm trying to do it in AppDelegate. Following is my code which doesn't work. Can anyone point me…
Matt
  • 315
  • 2
  • 6
  • 20
0
votes
2 answers

Change tab bar button sequence from storyboard

I try to change tab bar button sequence. Right now sequence of tab bar is Notification Message Friend My fav. Home I want sequence of tab bar Home Message Friend My fav. Notification Move Home to first button
Vivek
  • 4,916
  • 35
  • 40
0
votes
1 answer

Alert view from tabbar

Like this video link enter link description here,I search around,got some idea by this enter link description here,but this project always open a alert with a background of selectedindex=0 , I need a background as last viewcontroller as in video.How…
Shangari C
  • 792
  • 1
  • 5
  • 17
0
votes
2 answers

Change the Tab Bar title globally at apps.Delegate Objective C

How to change the tab bar item title at apps delegate. Currently I have 5 tab bar item. How to change the 5 tab bar item title programmatically at startup? My tab bar controller is set up as follow. I have 5 tab bar controller and 4 of which is…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
0
votes
3 answers

How to get name of previous ViewController when switching TabBar Item

In case I have 4 items in Tabar. When open app, default is in TabBarItem[0] - ViewControllerRoot I push from ViewControllerRoot into ViewController A. From ViewController A, I switch to TabBarItem[3] - contain ViewController B. The question is: How…
VitDuck
  • 83
  • 9
0
votes
2 answers

disable tab bar item click event as fast as possible

When the UITableView cell is clicked, popup menu appears from bottom with animation and covers tab bar. I want to prevent tab bar item's click event when cell is clicked and popup menu is appearing. So I made a custom UITabBarController which…
soonoo
  • 867
  • 1
  • 10
  • 35
0
votes
1 answer

My iPhone app crashes after opening it from background and selecting Tab atIndex:0

I really can't figure this out. When I click a link to open Safari from within my app, browse through the webpage, then return to my app, I can open and browse two tabBarItems in my UITabBar. But, when I try to select the one atIndex: 0, I get an…
0
votes
2 answers

Controlling UITabBar items

I have a UITabBarController for which I have 3 view controllers for 3 tab bar items connected using relationship segues. But I want to show 2 OR 3 tab bar items depending upon user type. For instance, for user A show only 2 UITabBarItem and for…
Nauman Zafar
  • 1,083
  • 15
  • 40
0
votes
0 answers

Enlarge UITabBarViewController buttons

I am using a UITabBarViewController in my iOS project and my tab button texts are really thin/small. How do I enlarge the text on the buttons? How do I change the TabBar color to be more distinguishable?
MathEnthusiast
  • 101
  • 1
  • 10
0
votes
1 answer

Go to home page tab on click on tab item from each and every page

I need to go to home page when I click on Home tab item. Even when I am in an inside page of any tab , any page. Note : The whole tab bar controller is embedded in a navigation controller and navigated to tab bar controller from another page.
NavodaP
  • 218
  • 3
  • 18
0
votes
1 answer

iPhone X UITabBarButton misposition

I'm having an issue on iPhoneX using XCode9.2 but I have no issue running the app using XCode8. From my findings are the UITabBar height is set at 49. UITabBarButton height is 14 for iPhoneX but UITabBarButton is 49 for iPhone 6 Any ideas how to…
khheng
  • 147
  • 1
  • 9