I have been using XCode 3.2.4 when started developing iOS apps but now I turned to XCode 4.1 with iOS 4.3 SDK. I noticed that now dealloc method is not added automatically when I create UIViewController class from XCode template as were in XCode 3.
Searching through Internet brings me that this might happen if I would created project with ARC (automatic reference count) but as I know this feature is implemented in XCode 4.2 only.
Should I add the dealloc method manually?
You can just go ahead and add dealloc. If ARC is indeed enabled, you’ll get complains from the compiler.
Even when using ARC, dealloc is still sometimes needed if you need to do thing besides releasing objects (for example, un-resgister observers).