Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift go to root view controller

// For Navigation
self.navigationController?.popToRootViewController(animated: true)
// For Presenting modally
self.view.window!.rootViewController?.dismissViewControllerAnimated(false, completion: nil)
 
PREVIOUS NEXT
Tagged: #swift #root #view #controller
ADD COMMENT
Topic
Name
5+9 =