Created
June 6, 2014 01:47
-
-
Save mint149/93be917e11720b475c35 to your computer and use it in GitHub Desktop.
UIImageViewで画像をアスペクト比を保ったまま表示したい時は、アトリビュートインスペクタ→View→ModeをAspect Fitにするか、以下のコードを追加する
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
imageView.contentMode = UIViewContentModeScaleAspectFit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment