NSFetchedResultsController fetch and display results in combination with two iPhone SDK objects

I am trying to improve the ToDo app for iPhone.

I have two objects: 1. Task 2. Project

A project can have several tasks, but a task can have one or one project.

I am trying to show both in the same UITableView using NSFetchedResultsController

Is it possible to extract two objects and display / sort them as from one UITableView?

+3
source share
3 answers

Not sure what I understood completely, but are you trying to display projects and tasks in the same UITableView?

, , "" - , Task Project. (, TableView). , .

, , , .

, , NSFetchedResultsControllers, Entity, rowForIndexPath: ( - ). .

+1

Core Data? , Project, Task .

NSFetchedResults, . Task , nil.

, , .

1 -
:

2 -
:

..

0

, . , .

0
source

Source: https://habr.com/ru/post/1724799/


All Articles