In view based mobile application(iOS/Android) rootview provides interface between window and otherview.
Questions tagged [rootview]
148 questions
96
votes
8 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,987
- 9
- 29
- 41
26
votes
3 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
- 29,657
- 26
- 147
- 224
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,331
- 7
- 55
- 94
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
- 15,541
- 26
- 90
- 154
11
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…
user10460877
10
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
- 5,040
- 3
- 40
- 47
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,216
- 24
- 116
- 190
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
- 12,319
- 23
- 93
- 186
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,231
- 10
- 41
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,440
- 21
- 91
- 155
4
votes
1 answer
Is there a way to load swiftUI view into NSView?
I would like to know if it's possible to load a SwiftUI view into an NSView.
I was hoping to set the windows content view to aSwiftUI but it seems impossible
window?.contentView = view where view is of swiftUI

Tochukwu
- 190
- 1
- 11
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
- 34,042
- 79
- 253
- 454
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
- 3,107
- 1
- 28
- 53
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,632
- 2
- 20
- 45
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,752
- 2
- 41
- 66