Questions tagged [uitabbar]

UITabBar is a user interface element in Apple's iOS, which is a bar at the bottom of the screen and has images and/or text representing different views of an application.

UITabBar

UITabBar - iOS Class (Apple Docs)

Class Structure = UITabBar : UIView : UIResponder : NSObject

A UITabBar is a common user interface element used in constructing multi-view applications. Each tab/button may contain text or an image, and when pressed corresponds to a , or a subclass of (such as a ).

Image: screenshot of the UITabBar in Apple's Health application.

UITabBar Example


The object which controls a Tab Bar, is a . This class manages the view swapping that occurs when the user selects another tab.

2318 questions
0
votes
1 answer

UITabbar application problem

hello to every one i am creating a tabbar application. it contains 5 tab. after pressing 2nd tab the view controller show the new View with contain only two new tab. i am completing first task of 5 tabbar view . now the question is how to show…
Hiren
  • 12,720
  • 7
  • 52
  • 72
0
votes
2 answers

Cannot convert value of type '(SwipeableTabBarController).Type' to expected argument type 'UIView'

I want to add Tabbar to my application. But when I try to add it, it gives the error in the header. How do I activate the Tabbar function? public extension UIViewController { public func setTabBarSwipe(enabled: Bool) { if let…
uaberkoo
  • 39
  • 7
0
votes
2 answers

bottom tabbar disappears and leave black when pushed from UITableViewController to UIViewController

In my use case, I want to hide the bottom tabbar when navigating away from UITabbarController. I was using let vc = storyboard?.instantiateViewController(withIdentifier: tableData[indexPath.row]["vcIdentifier"]!) self.hidesBottomBarWhenPushed =…
Jianyuan Chen
  • 53
  • 2
  • 9
0
votes
1 answer

Bottom half of UITabBar was cover by the phone itself

I have this application which have 3 screen for now. The first screen has UItableView with NavigationController. The second screen is still UITableView which drill down from the first one. On the third page I tried to call tabbarcontroller but when…
sicKo
  • 31
  • 4
0
votes
1 answer

Why can not change UITabBar badge font iOS Swift?

I try to change UITabBar badge font like this: cartTab = tabBar.items![2] let font = UIFont(name: "MyFontName", size: 11)! cartTab?.setBadgeTextAttributes([NSAttributedStringKey.font.rawValue: font], for:…
reza_khalafi
  • 6,230
  • 7
  • 56
  • 82
0
votes
1 answer

Move to TabBar item with data using button

Hello I want to select tabbar item with some data using button on uiviewController , i can move to another tabbar using this but in this method i can't move data let second = self.tabBarController?.viewControllers?[2] as?…
John Li
  • 111
  • 1
  • 8
0
votes
1 answer

No touch gestures were set, but tabBar only responds to long press. Why?

I have a view which has a tabBar at the top, and below it is a tableView. The tableView has touch gestures which are constrained to it (tap, double tap, and pan gesture). However, the tabBar has no touch gestures installed but only responds to a…
0
votes
1 answer

iPhone XR iOS 12 UITabBarItem title overlap on top of the picture

The issue only happens on the iPhone XR, it works well on all other iPhone devices. And I used the original UITabBar component, not the customized one tabBarItem.titlePositionAdjustment.vertical = -10.0 tabBarItem.selectedImage = UIImage(named:…
Jin
  • 665
  • 1
  • 7
  • 15
0
votes
0 answers

How do I control the height of a UITabBar selectedIndicatorImage

I'm trying to style the tabBar.selectedIndicatorImage of my UITabBar and can't get it positioned correctly. It should be 50px tall and be aligned to the top of a given tab. However, it's aligned to the bottom: class MenuTabBarController:…
Jim
  • 1,260
  • 15
  • 37
0
votes
1 answer

How to solve Google Maps sdk orientation issues using TabViewController

I started an iOS project for iPhone where I thought might want a tab bar. I later decided that I don't want it (I want the extra screen space) and I so I tried to delete the tab bar and set my main ViewController as the initial viewController in…
andrewlewisdev
  • 202
  • 2
  • 11
0
votes
1 answer

TabBar Badge Events and changing

I have a tabbar, with a default badge count of 6. When a user changes the value of a button on the tab view, I would like the badge to adjust. -1 or +1. All the buttons are set to red, if the user changes the value to green, then the badge goes down…
0
votes
1 answer

Hidden UITabBar while UITabBarController is inserted into container view

For some reason I need to insert UITabBarController into conatiner view. When UITabBarController is presented itself (VC with container view is skipped) it works perfectly and everything is being showed. But when I insert it into UIView like below…
kkiermasz
  • 464
  • 2
  • 15
0
votes
3 answers

How to show six TabBarItem in UITabBar

Can I show six TabBarItem in UITabBar, I try to resize TabBarItem but it can't. uitabbar
0
votes
1 answer

show always a uiimage on the top of a tabbar

i searched before post my question, but i find nothing useful. before: i'm a c# developer and i'm doing my first iphone app, don't kill me please! in my app i have a tabbar controller on the bottom (4 buttons) each button, is a navigation controller…
Jerry
  • 11
  • 1
0
votes
3 answers

How to set flag and pass some values from Popup present model viewcontroller to Tabbar Main Viewcontroller Using Swift 4.2?

My scenario, I am having Tabbar with three viewcontroller. Here, tabbar first viewcontroller I am showing tableview. If I click the tableview cell it will show one popup present model viewcontroller. In this present popup viewcontroller I am…
devmikle
  • 105
  • 2
  • 11