title: UIScrollView setZoomscale does not work from ViewWillApper
body: <p>Hey guys I googled around a bit, and read some Topics here on stack overflow but no one cloud help me really , so i hope you can help me.
  I have an UIWebView which display an local saved PDF which is working very fine, but i also want to set the zoom level when the PDF is loaded. I solved it this way.</p>
  
  <pre><code> override func viewDidAppear(animated: Bool) {
  
      WebView.scalesPageToFit = true
      if(defaults.objectForKey("positionY") != nil){
          WebView.scrollView.setZoomScale(defaults.objectForKey("zoomlevel") as! CGFloat, animated: false)
          let offest = CGPoint(x: defaults.objectForKey("positionX") as! CGFloat, y: defaults.objectForKey("positionY") as! CGFloat)
          WebView.scrollView.setContentOffset(offest, animated: false)
  
          print(defaults.objectForKey("zoomlevel") as! CGFloat)
      }
  </code></pre>
  
  <p>But this is not really nice because, it looks bad to the user, so i tried to move my Code to ViewWillAppear, but then it does not work any more, and the pdf is not zoomed.
  Thanks for any solution ideas :)</p>
  
  <p>Edit as i wrote i a comment below i printed the value of the Zoomscale after seting it.</p>
  
  <pre><code>        WebView.scrollView.setContentOffset(offest, animated:false)
          println(defaults.objectForKey("zoomlevel") as! CGFloat)
          println(WebView.scrollView.zoomScale)
  </code></pre>
  
  <p>If i do this in ViewWillAppear or ViewDidLoad, the first value ist the saved value like 1.82366, the second value is still 1.0. If i call this in ViewDidAppear the first and second value are equal except of the First appearance of the View (app start). So if it start the App it is the Same like described above for ViewWillAppear but if i come back from another ViewController via segue it works for ViewDidAppear.</p>