开发者

Memory management in IOS application

I am developing an IOS application and i will submit it the next week the Apple store. but i am not very good in memory management.

  1. I wo开发者_StackOverflowuld like to know what are the all tools that you use to remove all the memory erros ( leaks,...).

  2. should i remove all the NSLogs before submit it to the store ?

  3. What are the other things to take care before submit it to the store ?

thanks for your answers


Before submitting to the app store..

  1. Detect all leaks, you can use

    a) Leaks (xcode->instruments->leaks).

    b) Static analyzer tools, if you are using newer versions of xcode (Build-> build and analyze).

    c) Above all , make a thorough check yourselves, that you arereleasing all memory that you are allocing/retaining..

  2. What the need of NSLog in a distribution build. NSLog helps in debug..Remove them all..

  3. Run your app in whatever iphone device you get..Never submit an iphone app to store without checking on device itself.

  4. If your app crashed during review, then it is surely rejected. Resolve all bugs/crashes before submitting. A good QC on device is a must.

This checklist might be helpful..


The static analyzer and the instruments will help you detect the leaks. Find and resolve them. Have a look at Memory management it will help to resolve leaks.


In Xcode , Instruments -> Leaks, is used basically to find out memory leaks.

Hope this helps you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜