-
What is the correct place to call the clean up code like the following if ARC is enabled?
if ([EAGLContext currentContext] == mContext) [EAGLContext setCurrentContext:nil]; -
In ARC, since memory is managed by the LLVM, can we still override the dealloc method
without any caveats?
What is the correct place to call the clean up code like the following
Share
You can still call this code in the
dealloc, but depending on the structure of your code, there may be a better point for it. PerhapsviewDidUnloadYou can still override
deallocwith the following caveats:[super dealloc];release, you should only do nil assignments, remove listeners and such in here.