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

Classes for views in tab bar menu

I am novice in swift and I have found different tutorials with different solutions. My question is, if I create tab bar menu, I will get in storyboard three views: First Scene, Second Scene and Tab Bar Controller Scene. I understand that I need…
user3421673
  • 97
  • 1
  • 3
  • 10
0
votes
1 answer

Detect Tab bar item change for UITabBarController

Is there a way, such as a delegate, for the tab bar controller to do something when you tap an item? The action should only be performed once when the view is displayed and not if you repeatedly press on the tab button. I am using this delegate, but…
Fast
  • 121
  • 10
0
votes
2 answers

FontAwesome UITabBarItem not displaying correctly

I am trying to create icons for each of my view controllers, but it is creating a question mark block as if it does not understand the image let settings = UINavigationController(rootViewController: SettingsController()) let individual =…
Peter S
  • 827
  • 1
  • 8
  • 24
0
votes
1 answer

Tab Bar with AVPlayer that gets info from tableview?

I have a AVPlayer that playes audio. What i need is, to have a TableView or something like it, with some names like: Tom Jones, and if that one is selected in the tableview, it passes a string to my AVPlayer, so the AVPlayer changes song.
Patrick R
  • 1,949
  • 3
  • 32
  • 58
0
votes
2 answers

Create the custom UITabBar controller and highlight the selected tab with separator

Please find the below screenshot and their specification for tabbar. Display the corner radius to only the top left corner and apply the shadow on it. Apply the curve to the top right corner. Show the selected tab with red font color and show the…
Ramkrishna Sharma
  • 6,961
  • 3
  • 42
  • 51
0
votes
1 answer

Objective-C: Tabbaritem tapped->Method Called-> But WebView not refreshed

Trying to achieve When I tap on the tabbaritem say #2, it will called the method and reload the web view. Issue When I tap on the tabbaritem, the method is called but web view did not reload. Did not load the web view Question If I called the…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
0
votes
1 answer

Objective C, A Question about tab bar and multi thread

I have a UITabBar which has 5 menus. Two of five menus spawn a new thread in viewWillAppear method. In the method, it sends HTTP request to a web server on background. The web server returns data in XML format. After it receives the data, it parses…
codereviewanskquestions
  • 13,460
  • 29
  • 98
  • 167
0
votes
1 answer

Objective-C : Title of tab bar item will not change after login page but works when relaunch from xCode?

I have a Change Language VC that changes the language of the app. If I initially run the app, register and log in. Then immediately I go to the change language VC and hit the change language method. The title of the tab bar item will still remains…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
0
votes
2 answers

iPhone app crashing after a quick stop/restart

So my app is crashing when the app is stopped and then restarted really fast here's the stack trace: It looks like the UITabBar is trying to access a view that is null, hence the exc_bad_access. I'm confused as to why it only happens on the restart,…
Msencenb
  • 5,675
  • 11
  • 52
  • 84
0
votes
2 answers

How do I stop my UITabBar from responding to touches after hiding it?

When hiding the tab bar either by: self.tabBarController?.tabBar.isHidden = true or self.tabBarController?.tabBar.layer.zPosition = -1 The tab bar hides as expected but it still responds to touches and toggles the tab. How do I prevent that from…
Michael Hudson
  • 1,330
  • 4
  • 21
  • 25
0
votes
2 answers

TabbarController child controller always return nil - Swift 4

I am trying to access the objects from child controller but it always returns nil. Please check the below code. let mainStoryboard = UIStoryboard(name: "Main", bundle: Bundle.main) let vc: UITabBarController =…
Mac_Play
  • 302
  • 4
  • 21
0
votes
1 answer

How to create Tab bar with dynamic tab programmatically? Bottom black screen issue

I want to create Tab bar with dynamic tab. I have created tab bar with dynamic tabs but when I navigate to details screen from my tab bar screen there is black space in that details view controller. please suggest me the right way to implement it.…
Jayesh Joshi
  • 37
  • 1
  • 9
0
votes
1 answer

How to prepare rectangle type tab bar in swift?

I have prepared a tab bar which has a square shape rectangle but I can't able to prepare a rectangle type shape of a tab bar button or UIButton or View. How can I prepare a tab bar or button or view as following gif file?
0
votes
1 answer

tabBar decreasing size of view in nested ViewController

I've got a UIViewController (VC) nested in UIPageViewController in a UINavigationController in a UITabBarController (UIViewController < UIPageViewController < UINavigationController < UITabBarController). Since I'd like to use the entire screen for…
Moritz
  • 745
  • 1
  • 10
  • 32
0
votes
1 answer

iPhone's UITabBar as part of application window; problems when rotating device

I have an iPhone application that's using Navigation Controller to display the top bar (with title and back button, and such...). I added a UITabBar to the application window, that enables to switch between the parts of it. Instead of adding the…
kender
  • 85,663
  • 26
  • 103
  • 145
1 2 3
99
100