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