There is a class named "SDWebImageDownloaderOperation" which has the following method in SDWebImageView lib.
- (void)setFinished:(BOOL)finished {
[self willChangeValueForKey:@"isFinished"];
_finished = finished;
[self didChangeValueForKey:@"isFinished"];
}
however, rs does not override automaticallyNotifiesObserversForKey:
and don't implement observeValueForKeyPath:ofObject:change:context:
methods,so what is the purpose of writing
[self willChangeValueForKey:@"isFinished"]
and
[self didChangeValueForKey:@"isFinished"]