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

Hide custom middle button when navigation push swift 4

I have 3 bar items in my tabbar, the middle one I set disable and overlay it with my middle custom button like this Swift 3 - How do I create a prominent button on a tab bar (e.g. camera button) I want to hide bottom bar when navigation pushed a new…
coinhndp
  • 2,281
  • 9
  • 33
  • 64
0
votes
1 answer

Select tab and change segment on the view loaded

I would like to be able to programatically select a tab on a UITabBarController and then access the view that is loaded in order to set the segment loaded by default. For example if I have a menu and click a button titled 'A/B', I want it to select…
Ben
  • 4,707
  • 5
  • 34
  • 55
0
votes
1 answer

Override properties for Custom TabBar?

I have a custom Tab Bar class. It is shown below. In main.storyboard, I set the class of my tab bar to be CustomTabBar: class CustomTabBar: UITabBar { override var items: [UITabBarItem]? //[This line returns an error] //…
Everett
  • 387
  • 1
  • 4
  • 17
0
votes
0 answers

tabBar color difference

For some reason my iPhone/Simulator incorrectly interprets the black when I assign it to the tabBar. UITabBar: func setupViewController(){ tabBar.barTintColor = .black } The custom button: func setupMiddleButton() { let menuButton =…
Tyrus Rechs
  • 73
  • 2
  • 12
0
votes
2 answers

iPhone:Color of TabBar image?

I have added an image(Orange color) to TabBar, but when I run application image shown gray ! How can I slove this problem ? thanks
mahdi
  • 16,257
  • 15
  • 52
  • 73
0
votes
1 answer

UINavgationController and UITabBarController together

I am trying to create a view with a TableView in the center, NavigationBar on top, and a TabBar with 5 items. The TabBarItems will be attached to 5 different modal views. And the tableview can select an item and "navigate" to another tableview or…
Spock
  • 111
  • 3
0
votes
0 answers

TabBar not showing when moving from viewController to tabBarViewController?

When a go from a viewController to a tabBarViewController (meaning one of the two view controllers that is one of the tabs), the tab bar does not appear. When I move between either of the view controllers that are in the tab Bar controller instead,…
Everett
  • 387
  • 1
  • 4
  • 17
0
votes
2 answers

Call different viewControllers on click of tab bar of UITabBarController

Below is the image of my UITabBarController structure in storyboard. Right now in storyboard, AboutUsViewController(UIViewController) is bound with my tabBar button click event i.e. If I click on tabBar button, AboutUsViewController is opening but…
iPhone
  • 4,092
  • 3
  • 34
  • 58
0
votes
1 answer

new view animated and overlapping tabbar

i have a tabbar and in one viewController there is a button. When the user presses the button, i would like to let a view of a navController with a tableView as rootView appear animated. but there is a small empty stripe above the…
0
votes
1 answer

Tabbar dissappear when push a view in tab menu?

ProfileVC is a tab menu view. I pushed a SampleView with navigation controller from ProfileVC. If I dismiss SampleView i can see tabBar on ProfileVC but if i present ProfileVC from SampleView i cant see tabBar, it disappear. Dismiss will be a…
0
votes
1 answer

Adjust shading of UITabBarItem

I have a set of white images that I am currently using as the images for UITabBarItems in a UITabBar. These images are shaded automatically, and I would like to adjust this shading so that the icons do not appear as dark as they do by default on the…
John
  • 10,839
  • 8
  • 26
  • 31
0
votes
1 answer

How to set homeview controller if use a UITabbar in a viewcontroller

I have added a separate UITabbar to a viewcontroller. Made all the necessary outlets. Home viewcontroller has the tabbar in it. What i want it If i click the first button there should be no change but if click the second tabbar item it should show…
Niranjan
  • 13
  • 7
0
votes
2 answers

TabBar Controller and NavigationBar

i need to build an app with a Tab Bar Controller and some view controllers, i have done almost all the code and now i am experiencing problems in pushing a viewcontroller from the first TableView (in the first image) because i can hide the tab bar…
0
votes
1 answer

How to create a slide menu on a Tab Bar Button touch

I made a a tab bar view controller using storyboard. I thought it would be nice to implement a sliding menu when a tab bar button is tapped. How do I accomplish this? My Storyboard:
AP.fix
  • 37
  • 1
  • 7
0
votes
1 answer

UITabBar with UIWebView problem with switching views

I have an app which has UITabBar with 5 views, each attached to a different UIWebView. Each of the WebViews responds to: webViewDidStartLoad:(UIWebView *)webView webViewDidFinishLoad:(UIWebView *)webView Those two are responsible for displaying a…
AragornSG
  • 633
  • 1
  • 7
  • 22