Advertisement
JetForMe

Untitled

Jun 29th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.35 KB | None | 0 0
  1. if let url = NSURL(string: "some url")
  2. {
  3.     if let req = NSURLRequest(URL: url)?
  4.     {
  5.         self.webView.loadRequest(req)
  6.     }
  7. }
  8.  
  9. Error emitted:
  10.  
  11. ViewController.swift:47:39: error: could not find an overload for 'init' that accepts the supplied arguments
  12.     if let req = NSURLRequest(URL: url)?
  13.                  ~~~~~~~~~~~~~~~~~~~~~~^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement