I have been trying to figure out why one of my SKScenes wont deallocate for quite a while now. I have plugged all leaks according to Instruments, and have used __weak
references for all completion
blocks. What is my next step to figuring out why my SKScene won't deallocate? I have NSLog
'ed the dealloc
method to confirm it isn't being called, and the allocation heap continues to grow with each new time the game scene is played in instruments.
Next step to diagnosing SKScene deallocation issue?
184 views Asked by Todd At
1
If you have a block code, check them also and make sure you nil those blocks holding references to self. When you reference ivars inside blocks, it retains ownership to self.