Questions tagged [rootview]

In view based mobile application(iOS/Android) rootview provides interface between window and otherview.

145 questions
77
votes
7 answers

Swap rootViewController with animation?

Im trying to swap to another root view controller with a tab bar; via app delegate, and I want to add transition animation. By default it would only show the view without any animation. let tabBar = self.instantiateViewController(storyBoard: "Main",…
Chris Mikkelsen
  • 3,377
  • 8
  • 21
  • 38
25
votes
5 answers

Changing the rootViewController of a UIWindow

When my app first loads, I set the rootViewController property of my UIWindow to controllerA. Sometime during my app, I choose to change the rootViewController to controllerB. The issue is that sometimes when I do a flip transition in controllerB,…
aloo
  • 5,111
  • 7
  • 46
  • 88
24
votes
2 answers

How to find out if a UIViewController is the root view controller?

basically I want to know if the view controller I'm in is the root view controller or not. If its not I want to put a button in the nav bar that says "back" (as if it were a proper back button - this bit I know how to do). Before you ask, I have…
Thomas Clayson
  • 28,448
  • 25
  • 135
  • 216
14
votes
3 answers

How to change RootViewController in AppDelegate From Other ViewController?

This is didFinishLaunchingWithOptions Method in AppDelegate. Let me explain scenario, I have developed sideMenu like facebook in my app, but now I have to change the sideMenu list according to screens (ViewController) Here the side Menu is…
Chatar Veer Suthar
  • 14,765
  • 24
  • 87
  • 154
9
votes
4 answers

Programming iOS: clarifications about Root View Controller

Through this question I would like to know if I understand well the notion of Root View Controller. In iOS application, the Root View Controller (RVC) is the controller whose view gets added to the UIWindow application at startup, isn't…
Lorenzo B
  • 33,006
  • 23
  • 110
  • 185
9
votes
5 answers

Set rootViewController iOS 13

After upgrading Xcode a critical part of my application has stopped working. When my app launches I run a function to check boolean flags and set the correct rootViewController. But the code I have been using to set this has now stopped…
Oliver Ferris
  • 331
  • 1
  • 3
  • 16
8
votes
2 answers

getDrawingCache always returns the same Bitmap

I'm currently working on a project which needs to display a dialog with a grayout (black/white) background. To achieve this I'm taking a screenshot and of the whole app, place this screenshot on the background of the fullscreen dialog and put an…
Ben Groot
  • 4,915
  • 3
  • 38
  • 44
8
votes
3 answers

Adopting a side menu in iOS app. View controllers structure issue

I'm designing an app intended to have the following navigation structure: I need to have a welcome view with "Sign up" and "Sign in" buttons as most of apps have: This view does not show any navigation bar, as it seems to be the common thing. If…
AppsDev
  • 11,441
  • 20
  • 81
  • 163
6
votes
4 answers

Navigation Controllers with the same root view

So suppose you need some functionality that requires next storyboard. For example you need to upload different content to view depending on what tab is clicked. But the problem comes out when you try to use this storyboard. When you switch tabs you…
htzfun
  • 1,026
  • 9
  • 35
6
votes
4 answers

change RootviewController to Navigation controller

I am new to iPhone, I want to change my Rootviewcontroller to my new class and make it to navigation controller. Here is my code snippet, - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { …
Krunal
  • 6,266
  • 20
  • 89
  • 154
4
votes
1 answer

why is "window.rootViewController = self.navigationController" needed in Xcode 4 Navigation Based App?

Why is the following line needed within the didFinishLaunchingWithOptions method? self.window.rootViewController = self.navigationController; That is, noting there is already in Interface Builder, in the MainWindow XIB, the navigation controller…
Greg
  • 31,898
  • 75
  • 232
  • 424
4
votes
1 answer

How do you stop the UIWindow from clipping to bounds on rotation and showing the 'black frame'?

I'm creating an iOS app on iPad where I have my UIWindow with it's rootViewController having autorotaion for all 4 interface orientations. To the rootViewController.view I have added a view with an AVPlayer. The video which plays in that view is…
Geoff H
  • 2,688
  • 1
  • 25
  • 45
4
votes
4 answers

Login View with SWRevealViewController

Currently, I have a project where I want to integrate a Login View with a SideBarRevealController. Here is the link with the SideBarRevealController : https://github.com/John-Lluch/SWRevealViewController I am currently having an issue presenting my…
jsetting32
  • 1,566
  • 2
  • 16
  • 43
4
votes
6 answers

Set root controller with interface builder

When I drag a Navigation Controller on to the storyboard I get the Navigation Controller and a Table View Controller. I do not want the table view, so I delete it, insert a regular view controller, change its class to e.g LoginView, right-click and…
chwi
  • 2,663
  • 2
  • 34
  • 62
3
votes
1 answer

How to change RootViewController (in AppDelegate) from within CustomViewController?

Good day, My app has authorization form (SigninController) which is loaded in AppDelegate, and after signing in (checking is in SigninController.m) TabBarController should appear (as main view of application). How can I change controller from Signin…
LIAL
  • 1,554
  • 4
  • 23
  • 30
1
2 3
9 10