The life cycle of ios7/object-c Viewcontroller

Source: Internet
Author: User

1. Initialization, Viewcontroller will be initialized from storyboard, but the Init method will not be called (the initialization method is like air-to-air and water-based), and awakefromnib will be called when initialized

2. After setting the output (outlet), Viewdidload will be called

3. When the geometry position is determined, viewwilllayoutsubviews/viewdidlayoutsubviews will be called, so do not initialize the geometry position related content

4. Then, every time MVC appears on the screen, Viewwillappear/viewdidappear is called

5. Viewwilllayoutsubviews/viewdidlayoutsubviews will be called when geometric changes (portrait to screen toggle)

When 6.MVC disappears from the screen (as the point goes back into the parent view), Viewwillappear/viewdidappear is called

7. If iOS is out of memory, you will get a didreceivememorywarning notification (also in the background runtime), where it is released to a memory-intensive object (such as preloaded video), or iOS may kill you

The life cycle of ios7/object-c Viewcontroller

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.