I have been looking around on the apple developer and this site (i guess not long enough since i can not find the answer) for my question.
When releasing an object:
Is it possible to release multiple objects in one go, by doing:
I have tried this, and there is no compile, so obviously syntactically it is fine. But I am not sure if it is doing anything. Any suggestions?
When releasing an object:
Code:
UILabel *label = [[UILabel alloc] init];
[label release];
Is it possible to release multiple objects in one go, by doing:
Code:
[obj1, obj2, obj3 release]
I have tried this, and there is no compile, so obviously syntactically it is fine. But I am not sure if it is doing anything. Any suggestions?
Last edited: