Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Objective-C 运行时参考中OBJC_ASSOCIATION_RETAIN_NONATOMIC的关联对象行为是否在关联对象分配和保留新值之前调用关联对象引用的旧值?release
OBJC_ASSOCIATION_RETAIN_NONATOMIC
release
是的。如果在关联值时使用保留或复制行为,则当关联新值(无论附加到新值的行为)或对象本身被释放时,该值将被释放。