Learning Ios:4

Source: Internet
Author: User

This summarizes the contents of the Lecture 4 & 5 section. Lecture 4 introduces more objective-c, including the creation of objects (Alloc init & class method), sending messages to nil, ID types, dynamic bindings, introspection, etc. And the lower part describes some of the foundation framework's content. Lecture 5 introduces Uitextview and view Controller lifecycle,nsnotification, and one of the most important points is Lifecycle. Here is a summary of some of the ways in which they are run.

Viewdidload is called before the view is displayed in the controller initialization and export settings, where some initialization can be done, but it is not appropriate to add information about the view shape, and is called only once during the declaration period viewwillappear is called before the view is displayed. The lifetime can be called multiple times, so in which you do not place a one-time initialization code Viewwilldisappear view is about to disappear when called, In which you can do some save data and cleanup operations awakefromnib all objects (including controllers) stored in storyboard, are "released" and given life before export settings, where you can perform some initialization view operations Recent progress has been lagging behind the plan of about two lecture (it seems that 200 is out of order, haha), the back has to be mended, and for these courses are just roller-coaster-like browsing the past, although not to read or forget, to speak in-depth understanding is not, fortunately only the initial contact, First to establish a preliminary impression and the overall understanding of the framework, and then a further knowledge point. Examples have been knocked out, after the use of learning, will be involved in the knowledge points to do an app, it is still waiting to finish these lessons

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.