Skip to content

Implement KVO again, adding block and target-action to callback.

Notifications You must be signed in to change notification settings

wengcanzi/KVOTestProj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KVOTestProj

Implement KVO again, adding block and target-action to callback. 根据系统KVO的实现原理,重写KVO功能,添加block和target-action的回调机制,有效防止部分crash的现象,已经过profile内存检测 基本原理:为被观察类动态创建一个新的类,将原来isa指针指向动态创建的新类,其调用setter时实际上执行的是新类中动态添加的setter方法,在方法中进行回调

About

Implement KVO again, adding block and target-action to callback.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published