
- ARC下,用strong,weak等,跟其余OC对象一致。
- MRC下,用retain,assign,并且内存管理语句用dispatch_retain,dispatch_release/retain,release,不能用CFRetain,CFRelease。
- 兼容模式:
Build Phases -> Compile Sources
找到对应的需要兼容的文件,写上
-DOS_OBJECT_USE_OBJC =0
Build Phases -> Compile Sources
找到对应的需要兼容的文件,写上-DOS_OBJECT_USE_OBJC =0
本文标题:dispatch_queue作为属性
本文链接:https://www.haomeiwen.com/subject/djggwhtx.html
网友评论