Created
January 30, 2018 18:05
-
-
Save meyusufdemirci/2d7010ced7ae2e314a8e84e908fb69d6 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
@objc func onRotated() { | |
// portrait | |
if UIDeviceOrientationIsPortrait(UIDevice.current.orientation) { | |
} | |
// landscape | |
else if UIDeviceOrientationIsLandscape(UIDevice.current.orientation) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment