Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 979355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:12:25+00:00 2026-05-16T04:12:25+00:00

I am using Core Data to develop an application, and I have used a

  • 0

I am using Core Data to develop an application, and I have used a NSPredicate to ‘query’ an entity which returns an NSArray of results, as is standard.

The NSArray contains objects of ‘EntityA’ which itself contains attributes ‘AttributeA’ and ‘AttributeB’.

My question is, how can I extract information from this array?

Furthermore, how would I put items from this array into a UITableView (for example, ‘Attribute A’)?

Any help would be greatly appreciated 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:12:26+00:00Added an answer on May 16, 2026 at 4:12 am

    In creating your Core Data model you will have gone through the process of generating the Managed Object Class header files (select .xcdatamodel file, right click, Add Files etc…) Once this is done you import them into the files where you will use those objects. Then treat the objects just like any other kind of object:

    EntityA* entityA = [returnedArray objectAtIndex:0];
    entityA.AttributeA = something;
    entityA.AttributeB = something;
    

    When you define relationships in the model you will get either object references (1:1) or NSSet pointers to access (1:many). A small shift in thinking to get your head around it but once you have worked your way through an example or two it’s easy.

    In UITableView terms, same way you deal with any other data in an array. Or, read up about NSFetchedResultsController: “This class is intended to efficiently manage the results returned from a Core Data fetch request to provide data for a UITableView object.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im using core data i have an entity called questions whenever i add my
I'm using core data and I have a simple two-entity model. My navigation controller
I'm using core data on an iPhone application. I have multiple persisntent stores that
I have an application written using Core Data. I have 2 entities with a
I'm using core data and I have an entity defined called LogRecord. Elsewhere this
I am using core data for my application. I don't have exact idea how
I have an application using Core Data and bindings. I want to have an
Currently using Core Data . I have one table in which I am trying
I am using core data to fetch an entity. I only want those results
I'm developing an iOS app using Core Data. And I have a Log entity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.