2黑马币
- @interface PlayList : NSObject
- @property (nonatomic,copy) NSMutableArray *songArray;
- @end
- @implementation PlayList
- @end
- int main(int argc, const char * argv[]) {
- @autoreleasepool {
- PlayList *pl = [PlayList new];
- NSMutableArray *arr1 = pl.songArray;
- [arr1 addObject:@"ab"];
- NSLog(@"%@",arr1);
复制代码 代码如上,打印结果为null,反复实验了好久,还是没找到答案,请高人解答! |
|