What's the best way to use Obj-C 2.0 Properties with mutable objects, such as NSMutableArray?

后端 未结 6 1149
逝去的感伤
逝去的感伤 2020-11-30 11:13

I have an Obj-C 2.0 class that has an NSMutableArray property. If I use the following code, then the synthesised setter will give me an immutable copy, not a mutable one:

6条回答
提交回复
热议问题