129

Objective-C单向数据流方案 | Zepo's blog

 6 years ago
source link: https://zepo.github.io/2017/09/30/reflow/?
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.
背景当我们在写Objective-C代码时,会习惯性地把model对象的属性定义为nonatomic。如果该属性是被多线程访问的,那么这样做是有可能crash的。我们可以简单地模拟一下: 12345678910111213141516171819202122// Conversation.h@interface Conversation : NSObject@property (nonatomic

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK