liuzhiyi1992 / ZYCornerRadius

一句代码,圆角风雨无阻。A Category to make cornerRadius for UIImageView have no Offscreen-Rendered, be more efficiency.

Home Page:http://zyden.vicp.cc/zycornerradius/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

version 0.9.4 crash

feideperson opened this issue · comments

Crash at KVO method but version 0.9.3 works well.

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

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>
)'

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

ZYCornerRadius-master 3.zip

It is a demo here about using Masonry.

ZYCornerRadius-master 3.zip

You can try this modified version.

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!