In Objective-C with ARC, is it true that we usually only need to specify nonatomic as property attributes?

后端 未结 2 1430
天命终不由人
天命终不由人 2020-12-30 11:12

It is strange that in Big Nerd Ranch iOS 5 book (p.73) and Programming iOS 5 book (O\'Reilly, p.314) (updadte: even Kochan\'s Objective-C book Fourth edition)

2条回答
  •  死守一世寂寞
    2020-12-30 12:04

    By default, an object property is strong, atomic, readwrite. See https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html

提交回复
热议问题