iOS 错误:… is being deallocated while key value observing are still registered with it
这个错误从字面上来看就是有一个实例由于被observing而无法被释放。
具体原因可能是该对象添加了一个oberver。所以释放的时候要先取消observer。
具体方法是在 dealloc 方法中:
- (void)dealloc { [object removeObserver:self forKeyPath:@"aPath"]; }
ARC 下不能调用 super 的 dealloc 方法。
移动开发者