Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
- if let navigationController = self.window?.rootViewController as? UINavigationController {
- if navigationController.visibleViewController is DetailsTableViewController {
- return UIInterfaceOrientationMask.all
- } else {
- return UIInterfaceOrientationMask.portrait
- }
- }
- return UIInterfaceOrientationMask.portrait
- }
Add Comment
Please, Sign In to add comment