title: Swift UIWebView initial zoom scale
body: <p>Hey i asked similar question some Days ago but no on could help me and no i'm think im closer to the problem. I have an WebView on my rootViewController and saved some Values for zoom scale and position of an local PDF, now i want set the Webview to this values when it appears so i tried the following.</p>
  
  <pre><code>   override func viewDidAppear(animated: Bool) {
  
      doLayoutThings()
  
  
  }
      func doLayoutThings(){
  
      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)
          println(defaults.objectForKey("zoomlevel") as! CGFloat)
  
  
  
  
      }
  </code></pre>
  
  <p>I know that there are the correct values are saved to UserDefaults but the Webview looks if i didn't make any scrolling or zooming.  I'm really happy about any solution Ideas.</p>