Questions tagged [rootviewcontroller]

145 questions
0
votes
2 answers

Make SWRevealViewController as rootViewController after Sign In when it has tabbarController as sw_front objC

This is my Storyboards : Say I have a Sign In viewController above these and from where I want to make SWRevealViewController as my rootViewController, so that It can work perfectly. With the below code, From my leftMenuViewController I can select…
0
votes
1 answer

navigation bar color changes after new view is presented due to rootviewcontroller

i am going from menu viewControler to InboxViewConroller through segue. As the inbox view present and from the background menuview discarded the navigation bar color on inbox view goes darker due to the root view controller. I found the issue but…
0
votes
1 answer

Where to set window size iOS in objective-c?

I am trying to figure out where set the window bounds. Currently view does not fill the entire screen. I am just beginning to understand UI design for iOS. I have not set a rootViewController in the app delegate nor have i instantiated a…
3rdeye7
  • 536
  • 4
  • 25
0
votes
1 answer

Correct way setting 'Root ViewController' thru 'UINavigationController' subclass

I'm trying to dynamically, using code change the Root of my UINavigationController thru his subclass. Basically, my Storyboard looks like this: #MARK : App Storyboard As you can see, I set the the CustomNavigationController as the Initial View…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
0
votes
1 answer

Swift iOS -Programmatic RootViewController is Light Gray?

I'm just getting in to programmatic vc's with no more storyboards and I'm following YouTube's LetsBuildThatApp by Brian Voong for guidance https://youtu.be/NJxb7EKXF3U?list=PL0dzCUj1L5JHDWIO3x4wePhD8G4d1Fa6N. I followed all the directions and for…
0
votes
0 answers

NavigationBar title isn't showing when setting RootViewController

I made a ViewController that displays every time the app enters te foreground. This is because I want the user to authenticate every time the app enters the foreground (like bank apps do). I made this functionality this way: func…
Jaap Weijland
  • 3,146
  • 5
  • 23
  • 31
0
votes
2 answers

Moving to root view controller without showing child views

I want to dismiss all child views and finally move to root view controller. I used the following code DispatchQueue.main.async { appDelegate.window?.rootViewController?.dismiss(animated: false, completion:nil) } But issue is that while…
0
votes
1 answer

How to open NavigationController's root and pass a value?

I am creating the login part of a Xamarin.iOS application. When logging in I want to pass an User Object to the ProjectsViewController. First a user enters the username and password, then it is validated and lastly, once it is validated I want to go…
0
votes
1 answer

Changing rootViewController causing weird behavior

I am setting rootViewController like this in my app. func setupMainView() { let rootViewContorller = window?.rootViewController if (rootViewContorller?.presentedViewController != nil || rootViewContorller?.presentingViewController != nil)…
0
votes
1 answer

loading childViewControllers first time logging in

I have been struggling with an issue for loading child ViewControllers. The first time I log in it shows the containerView but without the childViewControllers loaded. When I close the app and re-open the app with the logged in state saved the…
0
votes
1 answer

Viewcontroller just shows black screen after implementing a rootviewcontroller

I am pretty new to programming, thats why I can't really figure out how to solve this issue. I have implemented a rootviewcotnroller in the app delegate so that if the user is logged in he is pushed directly to the app content instead of the login…
AlexVilla147
  • 283
  • 2
  • 15
0
votes
0 answers

show segue from modal viewController

I am trying to implement a push/show segue from a UITableViewController that is presented modally. I am able to perform a push segue from a row in the tableview, but it is delayed. I know it has something to do with the navigation hierarchy stack,…
user3708224
  • 1,229
  • 4
  • 19
  • 37
0
votes
1 answer

Swift 3 - setting rootviewcontroller delegate to navigation controller

In my Swift 3/Obj-C application, I'm trying to set the delegate of my rootviewcontroller to its navigation controller but am getting the following error: Cannot assign value of type 'NavController.Type' to type …
0
votes
0 answers

Transition to Root View Controller

I've tried literally countless and various ways to back to my initial viewController but I can't get anything to work. If any of you guys can see what i'm doing wrong I would be incredibly happy. Just to make sure I have a print statement in every…
0
votes
0 answers

Set rootViewController not release other View Controllers in navigation

My app is when duplicate log-in, i will force them go to LoginViewController (not the root view). But my problems is when i set rootViewController, other ViewController in navigation Controller not dealloc. it causes crash app> Could u please help…