与IQKeyboardManager冲突,在iOS10.3.3闪退,报错为
xception 'NSInternalInconsistencyException', reason: 'An instance 0x7f853e853600 of class UITextView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x608000638b80> (
<NSKeyValueObservance 0x608000843c60: Observer: 0x7f853e853600, Key path: attributedText, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x608000843c90>
与IQKeyboardManager冲突,在iOS10.3.3闪退,报错为 xception 'NSInternalInconsistencyException', reason: 'An instance 0x7f853e853600 of class UITextView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x608000638b80> ( <NSKeyValueObservance 0x608000843c60: Observer: 0x7f853e853600, Key path: attributedText, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x608000843c90>
使用了textview后, 退出页面后闪退,说没有注销掉这个observer,两边都使用了runtime取值,不知道怎么改 = =!