Questions tagged [dealloc]

In Cocoa (and other frameworks that derive from NeXTSTEP), dealloc is the instance method responsible for tearing down an object. It should release the object's references to its ivars and then call up to the superclass's implementation.

497 questions
-2
votes
2 answers

can't do super dealloc and need explanation about dealloc and release what is the differences between them?

That code is right? It doesn't dealloc and release it's saying that "super dealloc ARC forbids" when I need to do dealloc and when I need to do release? #import "ImageViewController.h" @interface ImageViewController () @end @implementation…
Benbo
  • 1
  • 1
-2
votes
1 answer

how to mange memory with properties

I am new to iOS so trying to understand memory management. I have a .h File which contains a property and i want to use that var in some function. @property (nonatomic, retain) NSMutableArray *myArray; then in my .m File i have some function…
1 2 3
…
33
34