Do you need to release parameters of methods at the end of them in Objective-C?

后端 未结 4 799
说谎
说谎 2020-12-05 11:21

If I have a parameter passed to a method, do I need to release the parameter at the end of the method?

4条回答
  •  伪装坚强ぢ
    2020-12-05 12:08

    No. Think NARC: "New Alloc Retain Copy". If you are not doing any of those things, you don't need to release.

提交回复
热议问题