Core data: any way to fetch multiple entities?

后端 未结 3 1367
情话喂你
情话喂你 2020-12-13 15:23

I\'m just getting started with Core Data, and as a learning exercise I\'m building an app where I need to display different types of objects in a single table view.

3条回答
  •  抹茶落季
    2020-12-13 15:52

    Tiago's answer is valid but the most straight forward way of doing this is performing two separate fetch requests and you can either store in separate NSArrays or append to one mutable array.

提交回复
热议问题