Memory leaks and memory overflows?
When the program after the application memory, unable to free the requested memory space (such as an object or a variable is not released after use, the object has been occupied by memory), a memory leak hazard can be ignored, but the memory leak accumulation of serious consequences, no matter how much memory, sooner or later will be occupied. Memory leaks can eventually lead to memory overflow!
When the program in the application of memory, there is not enough memory space for its use, the emergence of the memory, such as an int, but to save it a long to save the number, that is, an overflow.
1.main function
2.UIApplicationMain
* Create UIApplication objects
* Create a UIApplication delegate object
3.delegate object starts processing (listening) system events (no storyboard)
* When the program is started, the agent's application:didfinishlaunchingwithoptions is called: method
* Create UIWindow in application:didfinishlaunchingwithoptions:
* Create and set UIWindow Rootviewcontroller
* Display window
Memory leaks, 1. Run order