ravi_14 0 Light Poster
let session = NSURLSession.sharedSession()
//1
let downloadTask = session.downloadTaskWithURL(
url, completionHandler: { [weak self] url, response, error in // 2
//

return
} )

Please explain the meaning of [weak self] inside closure .
what if we dont declare it as [weak self] ?
Thanks /

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.