使用copy方法必须要满足NSCopying协议,但为什么retain修饰的对象在Xcode下同样可以使用copy方法?
用retain修饰 setter 方法: 用copy修饰 setter方法: 用assign修饰 setter方法...
#修饰词retain、assign ***retain、assign、copy在@property中的使用实际上是...
使用alloc/new/copy/mutableCopy生成的对象是自己生成并持有 使用retain方法持有非自己...
相关知识点: 1,Retain,copy assign 三个关键字的区别 Retain 用于修饰oc 对象 类型 ...
COPY关键字 MRC下如何重写retain修饰变量的setter方法?
1.block要用copy修饰,还是用strong block本身是像对象一样可以retain,和release。...
修饰词:assign、weak、strong、retain、copy、nonatomic、atomic、reado...
本文标题:retain修饰对象使用copy方法
本文链接:https://www.haomeiwen.com/subject/fngocttx.html
网友评论