Is garbage collection supported for iPhone applications?

Posted by Mustafa on Stack Overflow See other posts from Stack Overflow or by Mustafa
Published on 2009-01-06T10:58:08Z Indexed on 2010/04/23 5:23 UTC
Read the original article Hit count: 340

Does the iPhone support garbage collection? If it does, then what are the alternate ways to perform the operations that are performaed using +alloc and -init combination:

NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:xmlData];
UIImage *originalImage = [[UIImage alloc] initWithData:data];
detailViewController = [[[DetailViewController alloc] initWithNibName:@"DetailView bundle:[NSBundle mainBundle]] autorelease];

... and other commands. Thank you in advance for any help or direction that you can provide.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about objective-c