I use the flowing code Let url = NSURL (string: "http://www.hello.com") Let task = NSURLSession.sharedSession().dataTaskWithURL(url) { (data, response, error) ->Void In
}
Task.resume
I keep get error on let task that url cannot be used on type ViewController
Can someone help I'm lost here
Aucun commentaire:
Enregistrer un commentaire