Questions tagged [uitabview]

UITabView is a common misrepresentation of UITabBarController, which is a specialized iOS view controller that manages a radio-style selection interface.

UITabView is a common misrepresentation of UITabBarController, which is a specialized iOS view controller that manages a radio-style selection interface. The view that contains the tab images and text is not directly exposed by the iOS SDK, instead you define the controllers, text, and images associated with each tab option and the system takes care of its display and touch responses.

Please use the tag when referring to the user interface of a tab-based view controller container on iOS.

76 questions
1
vote
2 answers

Saving Array content over two view controllers

i have a slightly confusing problem here. I am using storyboard i have a tab view controller tab 1 has a table view controller (table 1) which on selection of a row goes to table 2 and some data is added to the table 2 here n it is shown on table 2…
newstar7867
  • 17
  • 1
  • 8
1
vote
2 answers

UINavigationController with UITabViewController

I'm building an app which's delegate has a UINavigationController (navigationController). The first view is a UITabViewController (tabView) which has a UINavigationController with a UIViewController with a UITableView which shows some contacts. What…
Ibai
  • 568
  • 1
  • 7
  • 21
1
vote
0 answers

Should I use prepareForReuse of UITableViewCell if the cell is built by UIContentConfiguration?

I try to use the new Architecture for the building cell of UITableView, but I can't understand whether should I use prepareForReuse for this case, because I don't understand how My cell : class CustomTableViewCell: UITableViewCell { static let…
Ice
  • 680
  • 1
  • 10
  • 23
1
vote
1 answer

Do not reload content in the top view in a navigation on tab switch

I'm on a view (lets say VC1) which is at the top of navigation stack. I click on another Tab and come back to this view, content in VC1 reloads. How do I stop reloading content in this situation as reloading doesn't make any sense since view is…
Raymond
  • 1,108
  • 13
  • 32
1
vote
0 answers

TabView SwiftUI return to Home page on click

I've a project with TabView, inside every tab there is the possibility to navigate inside other page, I would like that when I click on the tab the navigation resets to the main page simil instagram. this is my tab View: TabView(selection:…
Stefano Toppi
  • 626
  • 10
  • 28
1
vote
1 answer

SwiftUI iOS 13.3 Missing Navigation Bar title when nested inside TabView

The Navigation Bar title is missing when I put the view within a TabView. Anyone know what's the problem? struct ContentView: View { var body: some View { NavigationView { TabView { Text("Tab 1") …
1
vote
1 answer

How to make a timer in SwiftUI keep firing when changing tab with tabview

I have a timer that fires every half second and that leads to the calling of a function that outputs a set of strings that are used to display a countdown to a specific date. It works when I create a new event and then switch over to the tab that…
Ben O
  • 228
  • 1
  • 15
1
vote
0 answers

Cannot get values from API when called simultaneously in TabViewController 1 & 2 - Objective C

I have a TabViewController with 2 tabs, The first tab is my Homescreen. When I open my App and the first tab shows it calls an API. API CALLED _loadingHistory = ([(AppDelegate *)[[UIApplication sharedApplication] delegate] updateInprogress]); …
Ninay11
  • 45
  • 2
  • 9
1
vote
1 answer

What Method is used to identify when the user switches views in a tabview controller

I am working on my first simple tabview controller app. The first tab is a setup tab, and I just had a tester provide an unexpected use case. In order to address this use case, I need to execute when the user is leaving the view and before I load…
Michael Rowe
  • 870
  • 2
  • 11
  • 27
1
vote
2 answers

iPhone SDK: Know when tab on Tab Bar is clicked?

I have a tab bar which displays different views when clicked. When you click a tab for the first time, it calls the viewDidLoad method. But, it only calls that the first time. Is there a method that is called when a user clicks back to that tab,…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
1
vote
1 answer

Hide a tab bar item but still display the controller

I will accept answers in both swift and objective-c as the translation is fairly easy. I want to display a tab bar with a splash screen, but I don't want that splash screen to be in the tab bar items for selection. My setup now (below) shows the…
steventnorris
  • 5,656
  • 23
  • 93
  • 174
1
vote
1 answer

UITabViewController hide / make appear a view in code

I am using Xcode 5.1.1. I have a UITabViewController and used Storyboard to add 10 views to it. It works great and I get the "more" and table view all for free. I only want to show some of the tabs at the beginning. Once the user logs in with their…
1
vote
1 answer

Admob in iPhone with Tabbar and TableView

I'm having tab bar with 5 buttons. Out of 5 tabs, 2 are table views which uses navigation controller for showing sub views on click of cell. Above the tab bar, in each view I left some space for ads using "Admob". I'm adding ads using IB. But its…
satyam
  • 61
  • 3
1
vote
1 answer

From initial View Controller how to segue acriss to a UITabBarController and use prepareForSegue

Here is the setup: 1) Single View Controller - inital Cobntroller = with a button. 2) Tab Bar Controller controller with 1 View Controller - Label When I press the button it will segue over to the Tab View. Now I want to use the prepareForSegue to…
drlobo
  • 2,139
  • 5
  • 32
  • 42
1
vote
2 answers

Tabs do not show when using PushViewController

I'm trying to use the following code to display a tabbarcontroller UITabBarController *tc = [[self storyboard] instantiateViewControllerWithIdentifier:@"tabbarcontroller"]; [self.navigationController pushViewController:tc animated:YES]; It does…
Jhorra
  • 6,233
  • 21
  • 69
  • 123