Created
November 1, 2016 12:03
-
-
Save katiesmillie/df1379b35cce032509315e043bb77746 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewWillDisappear(_ animated: Bool) { | |
super.viewWillDisappear(animated) | |
UIDevice.current.setValue(UIInterfaceOrientation.portrait.rawValue, forKey: "orientation") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment