Questions tagged [rootviewcontroller]
145 questions
0
votes
0 answers
I switch window's rootViewContrller (vcA) to vcB, but dealloc method of vcA do not fire. The vcA has some operation, see below
the key window's rootViewController is a login ViewController。In the login viewController, i will modal or push other viewControllers.
When login successfully, it would switch the rootViewController to viewController C. I find the login…

ming
- 1
- 2
0
votes
0 answers
App Crash on launch iOS 10
I am facing an issue like app get crash on launch, i am trying to navigate to the RootViewController but app getting crash constantly, please check below crash report and specially app get crash only in iOS 10
Any suggestion
Could not load NIB in…

Bhavesh Nayi
- 3,626
- 1
- 27
- 42
0
votes
1 answer
Changing RootViewController type in Swift
Ok, I have been following along with a tutorial and I have completed that, all works fine. However the initial view that loads is a UITableViewController and I would like a UIViewController.
Here is the code for that:
func application(_ application:…

JamesG
- 1,552
- 8
- 39
- 86
0
votes
2 answers
Can I retrieve data from NSUserDefaults after app termination?
I was wondering where NSUserDefaults is writing all the stored data to: to the app memory or to the device the app is running on? In the latter case, I guess I should be able to retrieve stored data from NSUserDefaults even if the app has been…

Freddy Benson
- 735
- 4
- 11
- 30
0
votes
2 answers
Why does my app rotate without animation?
I have an app with an animated splashscreen and a main interface.
To transition from the splashscreen to the main interface I used this code:
presentViewController(mainViewController, true) {
…

vrwim
- 13,020
- 13
- 63
- 118
0
votes
2 answers
iOS with NavigationController As Root Make, One Controller ONLY Landscape
I have an app in which the root controller is a UINavigationController. Push one button, and it pushes another view controller. Push yet another and it starts an AVCaptureSession with Overlay. I want THAT view, and that view ONLY to be Landscape,…

user717452
- 33
- 14
- 73
- 149
0
votes
2 answers
I can't push the loginViewcontroller with navigationController on self.window
I have point a pageViewController as the rootViewController,and then I wanna display a login view above the pageViewController if not sign in.
NLLoginViewController *loginVC = [[NLLoginViewController alloc]init];
UINavigationController *navigation =…

Kayle Best
- 73
- 1
- 5
0
votes
1 answer
Setting rootViewController then navigate to next view programatically
Initially I have a hierarchy below after login
-> MyCoursesViewController
-> CourseInfo UITabBarController
If the user closes the app, then re-enters, the rootViewController will be the CourseInfo UITabBarController which is correct. However when…

fes
- 2,465
- 11
- 40
- 56
0
votes
3 answers
iOS Change rootViewController Dynamically
I would like to change rootViewController dynamically. It depends on json response. I have a BOOL value , it changes after getting json response. The problem is that this value never change even when the condition is true.
my code is below , I put…

Rockers23
- 775
- 1
- 12
- 24
0
votes
2 answers
Can't change rootViewController in Appdelegate?
I design a soft Pin.
You can put 4 numbers twice and it will be your code. When you finished code assignment. The view will present segue (kind: Present Modally) to show another viewController.
Due to convenient, I would like to reset the View…

HungCLo
- 442
- 2
- 6
- 21
0
votes
1 answer
iOS change rootViewController
I have 3 viewControllers named firstController, secondController and thirdController.
My logic is firstController.presentViewController(secondController), then secondController.presentViewController(thirdController), and the set a…

away
- 1
- 1
0
votes
4 answers
Appdelegate presentviewcontroller
I'm trying to display the webpage google.com using the following. For some reason it's not presenting the controller with google.com. Can anyone help?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary…

locoboy
- 38,002
- 70
- 184
- 260
0
votes
1 answer
Click rootViewController through viewController
I'm trying to add TopView in my application, it will be the same for each views. I do it like this
let vcTopMenu = storyboard?.instantiateViewControllerWithIdentifier("TopMenu")
let win:UIWindow =…

Alexander B
- 137
- 2
- 12
0
votes
1 answer
create tabbarcontroller on the fly and assign it to the view other than rootview of window
I want to use a third-party library which implements a nice tabbar controller. But it does all the work programmatically, basically all it does is create two uiviewcontrollers and add them to a tabbarcontroller, and then instantiate an…

photosynthesis
- 2,632
- 7
- 29
- 45
0
votes
1 answer
How to display parent view table view above suddenly upon child view?
This is my window hierarchy
->Root view Controller
->tableview
-> child view controller 1
->child view controller 2
Image specification :
first image **Rootview** controller ,second image is child view controller…

Kishore Kumar
- 4,265
- 3
- 26
- 47