Guest User

Untitled

a guest
Jun 13th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
  2. if let navigationController = self.window?.rootViewController as? UINavigationController {
  3. if navigationController.visibleViewController is DetailsTableViewController {
  4. return UIInterfaceOrientationMask.all
  5. } else {
  6. return UIInterfaceOrientationMask.portrait
  7. }
  8. }
  9. return UIInterfaceOrientationMask.portrait
  10. }
Add Comment
Please, Sign In to add comment