daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top