panghaijiao/HJCornerRadius

self.originImage = self.originImageView.image;

Opened this issue · 6 comments

使用了 出现崩溃在这个位置上
(lldb) po self.originImageView
warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.
0x0000000137ab5460

当 当前控制器 走delloc时会出现

使用方式有什么特别的吗?和demo比有什么不同?

父控制器添加了 四个字控制器 子控制器上面都是放着tableview 有对 tablview添加contentOffset的监听

UIImageView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x12e210420> (
<NSKeyValueObservance 0x12e2103a0: Observer: 0x12e20fff0, Key path: image, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x12dd02b30>
<NSKeyValueObservance 0x12e2103f0: Observer: 0x12e20fff0, Key path: contentMode, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x12daadf90>

早上重新使用上 报了这样的错误 kvo的

这个我还是有点不清楚,不知道如何模拟你的问题,你能定位下吗?

是不是要 - (void)dealloc {
[self removeObserver:[self imageObserver] forKeyPath:@"image"];
[self removeObserver:[self imageObserver] forKeyPath:@"contentMode"];

}

<NSKeyValueObservance 0x12e2103a0: Observer: 0x12e20fff0, Key path: image, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x12dd02b30>
<NSKeyValueObservance 0x12e2103f0: Observer: 0x12e20fff0, Key path: contentMode, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x12daadf90>
的确会出现这个问题,我遇到好多次了 ,几乎都是pop回去的时候挂机了 ,控制器以及cell都正常释放了他们的delloc方法都正常调用。