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 7946305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:06:43+00:00 2026-06-04T01:06:43+00:00

I had 4 UITableView which represents 4 tabs from my UITabBar. So I have

  • 0

I had 4 UITableView which represents 4 tabs from my UITabBar. So I have an unique custom TableViewController which controls every screen depending on the entity (on CoreData) it has to display.
In order to fetch elements from CoreData I use a NSFetchedResultsController.

But my problem is, for marketing reasons, I have to merge 2 screens which means displaying 2 entities in the same screen. So I have to fetch elements from 2 different entities. I also have an abstract entity “Element” which is a SuperClass that I use in my TableViewController to control each entity abstractly.

What is the best solution ?

  • Do I have to rewrite my Model to merge those 2 entities (this is a problem because the 2 entities are a bit different)
  • Can I tell to my NSFetchedResultsController to fetch 2 entities ? How ?
  • Can I tell to my NSFetchedResultsController to fetch the Element entity and afterwards to predicate those Entities ? How ?

Thank you in advance !

  • 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-04T01:06:44+00:00Added an answer on June 4, 2026 at 1:06 am

    I finally found a solution that I havn’t proposed.

    I have added a new Abstract Entity which is a superclass for the 2 I wanted to merge but which is an “element” child also.

    So my ElementListViewController still show “Elements” and I can show the merged Entity for my screen.

    I’m now working on migrating old model into new one.

    May this post be helpful one day …

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

Sidebar

Related Questions

I've got a UITableView with custom tablecells. First I had a version which implemented
I have a UITableView and I had like to download images asynchronously. How can
I have a UITableView on a view. This UITableView has cells which are made
I have a UITableView as a subview of my UIScrollVIew , which is the
I have a custom UIViewController inited from a nib file with the following view
I have a UITableView which I present in a UIPopoverController . The table view
I have a class called ListViewController which has a UITableView attached to it and
I'm working with a UITableView and a custom UITableViewCell . Initially, this had poor
HI,All I had a PopOver View ,Which consists of UItableView , and my Problem
I have a UITableView I'm populating with data from CoreData. I have a data

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.