title: scrolling stuck when image loads
body: <p>I have an image that is too big for the screen, so I have made it able to scroll down on the image to see it all, but when I load my image I am not able to scroll down before I've pinched it. It sounds kind of weird, but I hope someone understand what I meant, and is possible to tell me what I've done wrong.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>class DetailViewController: UIViewController, UIScrollViewDelegate {
  
  @IBOutlet weak var scrollView: UIScrollView!
  @IBOutlet weak var myDetailedImageView: UIImageView!
  
  var myDetailedImageName: String?
  var nameString: String?
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      func minscale () {
  
      }
      //For setting max and min zoom
       scrollView.maximumZoomScale = 0.8
      scrollView.minimumZoomScale = 0.15
  
      scrollView.delegate = self
  
      //reset zoomzcale for new image
      self.scrollView.zoomScale = 0.15
  
      self.myDetailedImageView.image = UIImage(named: myDetailedImageName!)
  }
  
  @IBAction func actionButton(sender: AnyObject) {
      let firstActivityItem = NSString(string: myDetailedImageName!)
  
      let activityViewController = UIActivityViewController(activityItems: [firstActivityItem, self.myDetailedImageView.image!], applicationActivities: nil)
  self.presentViewController(activityViewController, animated: true, completion: nil)
  }
  
  //Showing what to zoom/scroll
  
  func viewForZoomingInScrollView(scrollView: UIScrollView) -&gt; UIView? {
  
      //returning image to reload it self
  
      return myDetailedImageView
  }
  </code></pre>