I am creating an “Alert” view that will pop to the user in my app.
It has a button for closing it by calling:
[self removeFromSuperView];
I wish to set the view to nil when it closed so it will release. but
self=nil;
Is not legal.
How can I do that from the view itself without delegation?
Thanks
If you don’t have any other strong reference to the view, the view will be automatically deallocated for you under ARC.