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 can I create a LinkedIn like Tab Bar selection animation in iOS using Swift?

The current iOS LinkedIn app's UITabBar fills up the UITabBarItem image on selection. The filling up of the UITabBarItem image is animated. How can I replicate that animation using Swift? Initially when not selected the image just has an outline…
0
votes
1 answer

UITabBarController disappers after navigating to another UIViewController

Show TabBarController are user navigation from another UIViewController. UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; CategoryViewController *categoryViewController = [storyBoard…
kiran
  • 4,285
  • 7
  • 53
  • 98
0
votes
1 answer

Spring loading a UITabbarItem to navigate in iOS 11

In iOS 11, UITabbarItem conforms to UISpringLoadedInteractionSupporting which defines the isSpringLoaded var. In WWDC 2017 session 203, they indicate all you need to do to enable spring loading is set isSpringLoaded to true on a control, and…
jeffro37
  • 696
  • 6
  • 16
0
votes
3 answers

how to use custom icon with 2 color in tabor in swift 3?

I want to add special icon with 2 color in the tab bar but the app detect just one color I used lots of single color icons and there is no problem with them but this icon won't show as I want to be here is the image of that Icon the tabor…
Saeed Rahmatolahi
  • 1,317
  • 2
  • 27
  • 60
0
votes
2 answers

Open UIViewController upon clicking on UITabbarItem

I have created a UIViewController with a UITabbar in it. I did not use UITabbarController because I wanted UITabbar on the top of the screen. Upon clicking tab1, I want to present controller1 and on clicking tab2 I want to present controller 2. I…
A_G
  • 2,260
  • 3
  • 23
  • 56
0
votes
1 answer

UITabBarController icons changing height on touch

I have an issue with UITabBarController, the icons are changing size if I keep my finger on them and drag up or down, they are losing height by my dragging action, how can I stop that? Here is my code: override func viewWillAppear(_ animated: Bool)…
Kodr.F
  • 13,932
  • 13
  • 46
  • 91
0
votes
0 answers

UITabBarController item doesn't work properly

I am using UITabBar Controller On pressing the second item it first go to First ViewController. I am not able to identify my mistake. Can someone help?
0
votes
2 answers

Tap on tabBarItem to Present a View Controller

I have a custom command here to scrollToTop if any tabBar item is pressed twice. but now i want to add a function to a specific tabBaritem ( tag 3 lets say....) How do i combine what i have now: import UIKit class TabBarController:…
0
votes
1 answer

Click button push to another view controller with automatically highlight Tab Button Item

When I click the cross button in more view controller the action will push to home view controller. But the tab bar did not automatically highlight the home tab bar. The result I want is like this The code below is the action push to home view…
Nur II
  • 173
  • 1
  • 2
  • 16
0
votes
1 answer

how can i go for iphone photo album at the time of particular view loading?

I want to go to iphone photo album at the time of clicking the tabBarItem(that is at the time of particular view loading)..For this what should i do...I have no idea about this..please anyone help me out to do this... Thank You in Advance
Varshu
  • 64
  • 10
0
votes
1 answer

Custom class for UITabBarItem in ios

I have a tabbar with 5 tabs(0,1,2,3,4) at the bottom of the screen and they have different icons. What I am trying to achieve is for the 2nd tab I want a UIView on it and an image inside this UIView. For this, I tried creating custom UITabBarItem…
George
  • 3,600
  • 2
  • 26
  • 36
0
votes
1 answer

set tabbar item to custom image like instagram

I have been trying to look for this solution for a very long time, but I can not find any documentation or tutorials on it. I want to set a tabbar item to the user's profile picture. Each user can only log into the app through Facebook. The app then…
juelizabeth
  • 485
  • 1
  • 8
  • 31
0
votes
1 answer

UITabBarController tab to act as a Logout button instead of showing the corresponding view

I have a UITabBarController based iphone application. I added a new tab called Log Out via the Interface Builder. However I don't need its corresponding view. I want the Log Out tab to redirect to the Login view as soon as it is clicked (of course…
manospro
  • 799
  • 1
  • 6
  • 16
0
votes
0 answers

tab bar item text gets compressed if text greater than 5 alphabets

I have set a custom font to tab bar item with text greater than 5 alphabets. The space between alphabets gets removed and text shrinks horizontally. How to keep text spacing intact. This issue is same as Title text hugging/kerning + clipping in…
0
votes
2 answers

how to show up 2nd or third tab bar when iphone app is launched

hi I've created an iphone app. I am using 5 tab bar items. By default, when app gets launched, it shows up first tabbar. What i want to do is to display 3rd tab bar when application is launched. How can i do that? Best regards, Abdul qavi
aqavi_paracha
  • 1,131
  • 2
  • 17
  • 38