i am working on an IOS application.In Xcode I’d analyze the application Run->analyze
It showed 47 potential memory leaks I checked out all the cases in most of the cases it is not possible to dealloc the memory,will there be any problem while launching the application in appstore?
I have thoroughly checked the application it is not crashing anywhere neither it is showing low memory warning anywhere.
As i am new in IOS development kindly suggest me what i can do about this
Will it be enough to dealloc the memory in viewDidUnload method to avoid memory leaks?
It may not be rejected if it doesnt show any memory warnings. But building apps with leaks is generally not good programming. Why arent you solving those leaks? There is not a single situation where you wont be able to release your allocations. Use autorelease or pass the release message to the elements wherever needed.
Also, for better analysis of your app, run the app with INSTRUMENTS, it’ll give you a better idea where the leaks are coming from.
EDIT : How to run app with Instruments.
When you are in Xcode, Click on Run in the Top Menu Bar. In this section, go into the Run with Performance Tools and then select Leaks.
To know, how to use Instruments, go here.