Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewWillDisappear(_ animated: Bool) {
- super.viewWillDisappear(animated)
- if (self.isMovingFromParentViewController) {
- UIDevice.current.setValue(Int(UIInterfaceOrientation.portrait.rawValue), forKey: "orientation")
- }
- }
Add Comment
Please, Sign In to add comment