super dealloc on ARC subclasses

帅比萌擦擦* 提交于 2019-12-05 13:12:15
herzbube

The superclass' implementation of dealloc is automatically called (as far as I know, the compiler inserts the statement [super dealloc] for you).

External link to LLVM docs

Update

Here is the reference:

Custom dealloc methods in ARC do not require a call to [super dealloc] (it actually results in a compiler error). The chaining to super is automated and enforced by the compiler. Transitioning to ARC Release Notes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!