TableView looked at the side, with a lot of new ideas.
Because ToDoList is based on TableView, so be prepared to write some toys program, and then slowly modify.
The discovery task is well suited to write with the Master-detail framework. Probably played a demo program, feel that basic skills can be perfect, there is no need to reinvent the wheel.
Start reading the code:
Usually appdelegate is the end of software-related initialization processing, so exclude two files. Our mission is to master and detail.
The first step is to simply go over one side and what each function means. For further reading that requires modification.
Watch Master.h's files first
#import <UIKit/UIKit.h>#import <CoreData/CoreData.h>@interface Masterviewcontroller:uitableviewcontroller <NSFetchedResultsControllerDelegate>** Managedobjectcontext; @end
Nsfetchedresultscontrollerdelegate: In simple terms, nsfetchedresultscontroller changes, so you need to notify Master
Nsmanagedobjectcontext: http://www.cnblogs.com/xiaodao/archive/2012/10/08/2715477.html Here's a detailed introduction
To the effect of the CoreData context
To eat, to be continued ....
iOS Advanced ToDoList Development record 1