This is my question; I want to get some data from an URL, this is the code:
let internetURL = NSURL(string:"http://www.example.org")
let siteURL = NSURLRequest(URL: internetURL!)
let siteData = NSURLConnection(request: siteURL, delegate: nil, startImmediately: true)
let strSiteData = NSString(data: siteData, encoding: NSUTF8StringEncoding)
when I write this, XCode give me the following error:
Extra argument 'encoding' in call
on the last line. How can I do?