iOS Advanced ToDoList Development record 1

Source: Internet
Author: User

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

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.