Child View Controller to Rotate While Parent View Controller Does Not
What I am Trying to Do: Parent View that is managed by Parent View Controller SHOULD NOT ROTATE . Child View that is managed by Child View Controller SHOULD ROTATE to all orientations. What I Have Tried: ParentViewController override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask { return .Portrait } override func shouldAutorotate() -> Bool { return true } fun addChildViewController() { let storyBoard = UIStoryboard(name: "Main", bundle: nil) self.childViewController = storyBoard("Child View Controller") as? ChildViewController self .addChildViewController(self