Questions tagged [rootviewcontroller]

145 questions
0
votes
3 answers

dismiss rootViewController on button tap

I have a viewController instantiated by storyboard on application launch which is a part of hybrid app. On top of that I have presented one more view controller. Now While dismissing the presentedViewController I want to dismiss the…
0
votes
1 answer

How do you set UITabBarContoller in interface builder as root view controller?

I have cloned a project in Swift however the project has all been done programmatically (without the use of interface builder). The app uses a Parse PFLogin and PFSign up. I would like to use a UITabBarController (in interface builder) to manage…
0
votes
2 answers

presentViewController shows black sceen while UIModalTransitionStyleFlipHorizontal objective c

I'm facing issue with the UIModalTransitionStyleFlipHorizontal, Which gives black screen at background while transition and shows the actual screen. After first time it shows the last view which added as rootview. What actually I need to achieve…
-1
votes
1 answer

"Cancel" button (UIBarButtonItem) not working in iOS view controller

I am trying to add a "Cancel" button in my viewcontroller's navigation bar programmatically. The sole purpose of the button is to dismiss the current viewcontroller and go back to the root viewcontroller. I am using the following Objective-C code to…
-1
votes
1 answer

Once i Login why i am not getting HomeViewController as Rootviewcontroller in Swift?

In appdelegate i am getting UserId.. means i am login but when i run second time i am not getting homeviewcontroller as rootviewcontroller why? still it shows phonenumviewcontroller navigationcontroller -> phonenumviewcontroller ->…
Swift
  • 1,074
  • 12
  • 46
-1
votes
2 answers

How to change the rootviewcontroller to the third viewcontroller in a stack

var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let tabBarController = UITabBarController() let…
user8994473
-1
votes
6 answers

How to set rootViewController?

I am trying to learn this book but all the examples are without storyBoard, and when I tried to build the application I caught this error: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application…
-2
votes
1 answer

getting bugs with viewController instantiation from SceneDelegate

So my goal is to be able to show the right vc without any bugs. There's actually multiple bugs with this issue. First it would make sense to show the block of code and explain it first so you can get some context on what I'm talking about. In my…
-3
votes
2 answers

How to understand this line of Swift code to pop to root view controller?

I want to write some code to pop from the current view controller back to the root view controller. Confusingly enough, I have found numerous answer regarding this, with all sorts of syntax. (I'm guessing old answers in Objective C or different…
Birdman
  • 1,404
  • 5
  • 22
  • 49
-3
votes
2 answers

If no internet connection go to rootviewcontroller in swift

I am checking if there is or not internet connection before calling any service method. If there's no internet, I am showing an alert and if I click ok button I want to go to root view controller. Here's my code: if…
Ravi
  • 104
  • 2
  • 14
1 2 3
9
10