Download a file with NSURLSession in Swift
i have like 2 problems here , first i cant set NSURLSessionDownloadDelegate with a swift project, compiler says Type 'ViewController' does not conform to protocol 'NSURLSessionDownloadDelegate' Second problem is i cant find NSURLSession methods to download a simple file here is the way i use to download the simple file var url:NSURL = NSURL.URLWithString(fileURL) var request:NSURLRequest = NSURLRequest(URL: url) var downloadTask:NSURLSessionDownloadTask = sessionManager.downloadTaskWithRequest(request) downloadTask.resume() and these are the methods i want to make in swift URLSession: