w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Get Instance Of ViewController From AppDelegate In Swift

You could try:

let rootViewController = self.window!.rootViewController
let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let setViewController =
mainStoryboard.instantiateViewControllerWithIdentifier("CurrentShows") as!
DetailViewController
rootViewController?.navigationController?.popToViewController(setViewController,
animated: false)




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.