Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self.originImage = self.originImageView.image; #11

Open
angBiu opened this issue Oct 31, 2016 · 6 comments
Open

self.originImage = self.originImageView.image; #11

angBiu opened this issue Oct 31, 2016 · 6 comments

Comments

@angBiu
Copy link

angBiu commented Oct 31, 2016

使用了 出现崩溃在这个位置上
(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

@angBiu
Copy link
Author

angBiu commented Oct 31, 2016

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

@panghaijiao
Copy link
Owner

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

@angBiu
Copy link
Author

angBiu commented Nov 1, 2016

父控制器添加了 四个字控制器 子控制器上面都是放着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的

@panghaijiao
Copy link
Owner

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

@DamonCode
Copy link

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

}

@Tanyd31
Copy link

Tanyd31 commented Apr 20, 2017

<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方法都正常调用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants