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:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite
..
URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didFinishDownloadingToURL:(NSURL *)location
..
URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
.. if there is a new way to download files with NSURLSession i would like to know , and whats new in NSURLSession in swift