When is NSCopying needed?

前端 未结 3 2040
Happy的楠姐
Happy的楠姐 2021-02-19 23:34

I know it\'s needed if your object will be used as a key in an NSDictionary. Are there any other times like this that NSCopying is required?

If I think I don\'t need my

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-20 00:01

    When it's being passed to a copy property or any other method that is documented as copying its argument.

提交回复
热议问题