I’m new to application development on the iPhone. According to the tutorial, there should be a dealloc function in ViewController.m. However it’s disappeared. Is there something else I should use to release the memory?
Thanks a lot.
I’m new to application development on the iPhone. According to the tutorial, there should
Share
If by “disappeared”, you mean that a project created from Apple’s templates didn’t include it, then that’s because you selected Automatic Reference Counting when creating the project (the default setting in 4.2). You can read about it in Apple’s docs, but basically the compiler now keeps track of objects for you, so no need to release them.