get file path when downloading with NSURLSession
问题 I want to play music while downloading, so i play music with local file, how can i get file path in tmp directory while downloading with NSURLSession. The method URLSession:downloadTask:didFinishDownloadingToURL: than only call while file downloaded, so what should i do 回答1: If you want to get file location as it's being downloaded, just don't use download task. For example, create a NSURLSessionDataTask and stream it to persistent storage yourself (e.g. create your own NSOutputStream for