ChenYilong / ChenYilong/iOSInterviewQuestions

第4题

Open
#54 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
9.5k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

// .h文件
@property (nonatomic, copy) NSMutableArray *mutableArray;
// .m文件
NSMutableArray *array = [NSMutableArray arrayWithObjects:@1,@2,nil];
self.mutableArray = array;
[self.mutableArray removeObjectAtIndex:0];

因为关键词是copy,所以self.mutableArray是NSArray, 但是array得地址和self.mutableArray的地址是不一样的,有什么方法能让array得地址和self.mutableArray的地址不一样,同时使self.mutableArray是NSMutableArray

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.