Created
June 15, 2019 16:31
-
-
Save Bigigrammer/41dd7b9e103db5b57da66eacf5779ba2 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
@IBAction func showImg1(_ sender: Any) { | |
let image0 = UIImage(named: "Image") | |
// ここで初期化しておかないとZoomがおかしくなる | |
scrollView.zoomScale = 1 | |
imageView.image = image0 | |
imageView.frame.size = image0!.size | |
scrollView.contentSize = image0!.size | |
adjustImageFitInScrollView() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment