liuzhiyi1992 / ZYCornerRadius

一句代码,圆角风雨无阻。A Category to make cornerRadius for UIImageView have no Offscreen-Rendered, be more efficiency.
http://zyden.vicp.cc/zycornerradius/
1.45k stars 230 forks source link

version 0.9.4 crash #16

Closed feideperson closed 8 years ago

feideperson commented 8 years ago

Crash at KVO method but version 0.9.3 works well.

liuzhiyi1992 commented 8 years ago

used some autoLayout Framework? Masonry ? can you get me the Log, and crash for what scene? i cant touch off it.

feideperson commented 8 years ago

Yes, I do use Masonry. I find the crash point that the ViewController having rounded UIImageView dealloc. The following is the log.

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x14f06b3f0 of class UIImageView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x14f0678d0> ( <NSKeyValueObservance 0x14f03b640: Observer: 0x14f06b3f0, Key path: image, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x14deb7150> )'

liuzhiyi1992 commented 8 years ago

can you get me a Demo? I trying for a long time and can not touch off it. : (

liuzhiyi1992 commented 8 years ago

ZYCornerRadius-master 3.zip

It is a demo here about using Masonry.

feideperson commented 8 years ago

ZYCornerRadius-master 3.zip

You can try this modified version.

liuzhiyi1992 commented 8 years ago

fit! but i cant upload the working well demo here with the terrible network, please update v1.0.1 from pod, thanks for your help!

liuzhiyi1992 commented 8 years ago

ZYCornerRadius_3.zip