淺拷貝與深拷貝

1、保護封裝性: // Person對象中的name屬性使用copy修飾 @interface Person : NSObject @property (copy, nonatomic) NSString *name; @end // Man對象中的name屬性使用strong修飾 @interface Man : NSObject @property (strong, nonat
相關文章
相關標籤/搜索