SHARE
TWEET

Untitled

a guest Jun 27th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @IBAction func showImg1(_ sender: Any) {
  2.   let image0 = UIImage(named: "Image")
  3.  
  4.   // ここで初期化しておかないとZoomがおかしくなる
  5.   scrollView.zoomScale = 1
  6.  
  7.   imageView.image = image0
  8.   imageView.frame.size = image0!.size
  9.   scrollView.contentSize = image0!.size
  10.        
  11.   adjustImageFitInScrollView()
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top