开发者

What will happen if I forgot to release the object in iPhone App?

Will it auto release when the user quit the application? or it will stay in the machine until reboot? Also, have Apple provides any tools for develo开发者_StackOverflowper to check whether they release the object or not.


Probably everything related to the app will be destroyed when the app terminates. The memory leak affect the memory usage of your application. It uses up memory, it's bad practice and it may introduce bugs.

About the tool, if you are using xcode then check out the very cool integrated Static Analyzer on the same page.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜