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

  • SEARCH
  • Home
  • 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 8355263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:48:37+00:00 2026-06-09T09:48:37+00:00

I have a tableview which needs to show all the different destination entities from

  • 0

I have a tableview which needs to show all the different destination entities from the different relationships. To keep it simple, let’s look at one relationship, the one from the entity Operation to Goal, relationshipname: goal (inverse: operationalisation)

I’m wondering how to fill the cells

This is what I have:

- (void)viewWillAppear:(BOOL)animated{
goals = [[NSArray alloc] init];
goals = [[self.operation valueForKeyPath:@"goal.goalNaam"] allObjects]  ;
}

and

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath       *)indexPath
{
    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:CellIdentifier];
    }
    if(indexPath.section == 2){
        Goal *goal = (Goal*)[goals objectAtIndex:indexPath.row];
        cell.textLabel.text = goal.goalNaam;
    }

    // Configure the cell...

    return cell;
}

Im wondering this is the way to do it. Simulator jams but is not giving an error..

  • 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-06-09T09:48:38+00:00Added an answer on June 9, 2026 at 9:48 am

    are you sure you are using a 1:n relationship between Operation and Goal? I think I do not understand your question correctly. Shouldn’t have one Operation multiple Goals and each goal has an attribute goalNaam? And if it would be like that, than the Operation model would contain a NSSet of associated Goal objects which could be retrieved easily.

    Cheers,
    anka

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

Sidebar

Related Questions

I have a simple table view which is editable. All I need the user
I need to show a UINavigationController , which will have a TableView , inside
I have one tabview which contain two different tab(subject and chapter) and i need
I have a tableView which has cells with phone numbers. The app is not
I have a dynamic tableview which has a prototype cell with a button that,
I am creating a TableView which contains 20 rows.I have to add single labels
I have a tableview, which has many sections. each section has just one cell.
I am developing and tableView in which in each row I have to display
I currently have a tableview, with cell views which have NSTextFields inside of them.
In a tableview I have on every cell a UILongPressGestureRecognizer which I add like

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.