Allocation and deallocation of an object [closed]
I created
object *Obj = [[Obj alloc] init];
What happened? After I release it, the object is dealloc开发者_如何学Pythonated.Then what happens?
If I try to create the object again, what will happen?
After alloc+init you can use your object Obj.
After releasing you cannot use it.
When you will try to create object again, new part of memory will be allocated and you can use it again.
精彩评论