release method deprecated

后端 未结 3 635
时光说笑
时光说笑 2020-12-12 00:52

When has happen to the release method? I always release a memory allocation when I am done with it and now it seems that the method has been deprecated. Or maybe it does not

3条回答
  •  暖寄归人
    2020-12-12 01:49

    If you have enabled the 'ARC', then you don't need to release an object. That will be handled by the compiler. retain, release and autorelease are all handled by the compiler.

    Edit: You could know more about that from here

    Also there already a SO thread exists. Please go thru that.

提交回复
热议问题