开发者

Simple Core Data Example App?

I am trying to learn about core data on the iPhone, and I am 开发者_如何学Golooking for a simple Core Data example app.

The problem is, all the example apps I've seen are either too simple (just one view and one data object), or so full of extra functions that it's hard to see what's relevant (Apple's example apps).

I'm looking for an example app with:

  • an ordinary cascading to-many relationship (e.g. Company > Departments > Employees)
  • a simple drill-down interface (e.g. click on a company to see list of departments; click on a department to see list of employees; click on an employee to see name and address)
  • simple editing (press plus for modal view to add company/department/employee)

... so I can learn the basics about passing contexts between views, NSFetchedResultsController etc.

Does anyone know of such a thing?

Thanks!


Try the example found here: Wiley Code Examples

Click on Chapter 18 - Downloads.

Hope this helps.

  • Let It Be Known


I would recommend Marcus Zarra's Core Data book and the examples therein. He takes one example app that starts off very simple and incrementally adds complexity.

RecipeCT is the project that I would suggest looking at first. Having the book would help you navigate from project to project as the basic Recipes app transforms.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜