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.
精彩评论