74

透彻理解 KVO 观察者模式(附基于runtime实现代码) - 简书

 6 years ago
source link: https://www.jianshu.com/p/7ea7d551fc69?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
作者的话:空谈原理不如动手实现,猜测苹果工程师的设计思路,实在有趣?。 推荐另一篇文章:透彻理解 NSNotificationCenter 通知(含实现代码) 前言 iOS开发中,有一种设计模式应用广泛,那就是观察者模式。苹果称其为 KVO(Key-Value Observing),既键值观察,总是有人把 KVC 和 KVO 混为一谈,实则它们只是名字长得像。相信看完本篇博客,并且看明白 g...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK