Memory and ARC
unowned crash scenario
This code, which loads an image asynchronously in a UITableView cell, crashes now and then. Under what condition does it crash, and why?
final class ImageCell: UITableViewCell {
func load(_ url: URL) {
loader.fetch(url) { [unowned self] image in
self.imageView?.image = image
}
}
}