Open sjtupt opened 6 years ago
@RylanJIN got it. Thank you.
KVOControllerNonRetaining is an ambiguous api.
[self.KVOControllerNonRetaining observe:self keyPath:@"date" options:NSKeyValueObservingOptionInitial|NSKeyValueObservingOptionNew action:@selector(updateClockWithDateChange:)];
It will crash. When self dealloc, weak table has already removed the self
pointer, so you can not remove observer forever.
like this, you observe 'self', if you're not using KVOControllerNonRetaining you'll get retain cycle issue