I ve got 2 tables link by a 1-to many relationship, how could I retrieve data using NSFetchRequest from both tables using simply one request ?开发者_运维百科 Something like in SQL "select * from Table1 Table2 Where id.table1 =id.table2"? Or perhaps I miss something with coredata ! Can I reach objects simply through relationship ?
Thx for help
pick your objects from table1, and access their relationship property, that will fetch the related objects from table2.
If you want to learn more about Core Data, Marcus Zarra has done a book and also a course on iDeveloperTv. book is cheaper, both are fantastic.
精彩评论