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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:31:00+00:00 2026-06-09T12:31:00+00:00

I have a main UITableView Controller that is backed by a NSFetchedResultsController, this view

  • 0

I have a main UITableView Controller that is backed by a NSFetchedResultsController, this view shows a list of results sectioned by time of day. This view is governed by a segmented control that determines the categories and various flags for the predicate on the NSFetchedResultsController. Everything seems good so far.

But I have a problem with the detailed view:

I want the user to be able to navigate next and previous in the detailed view much like the default ios Email app.

How would I achieve something like that with my setup? I don’t think I can just pass the entity to my detail view and increment/decrement an id, since the previous list view depends on some filter predicates.

Do I need to create in the detailed controller another nsfetchedresults controller using similar predicate? How would I effiencetly detect whether there is no more after/before the current result so I can grey out the prev/next button?

Can I somehow make use of the result set already returned by the main list view (backed with the nsfc) even though it’s batched and sectioned?

Thanks for any help to wrap my brain around this.

  • 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-09T12:31:01+00:00Added an answer on June 9, 2026 at 12:31 pm

    My first thought is to subclass NSFetchedResultsController so that it remembers the index path of the most recent item that has been selected for detailed viewing. It could implement methods such as (id)nextObject, (BOOL)nextExists, and similar ones for ‘previous’.

    If you pass a reference to it from your table view controller into the detail controller, you could do the back and forth thing there and also sync the selected entry in your table when you return by using the current detail index path to select a cell.

    The only real trick would be index path arithmetic but that should be doable by examining the sections array in NSFetchedResultsController.

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

Sidebar

Related Questions

I have a main uinavigationcontroller that loads a uitableview as a subview as my
In my Map application I have segment controller on main screen and using that
Greetings, Problem: I have a main view, that already is associated with a xib
I have a main view controller which loads a tableviewcontroller when you press a
I am working on an iPad app that has a main view (In this
I have main table called 'Employee' and another slave table called 'EmployeeTypes' that has
Splash I have main activity UI startup operations that take between 5-10 seconds (that
I have a main-section div that is set to inherit it's height from its'
My application has a view controller that extends UITableViewController . The initialization method looks
In my iPhone app I have a UIViewController that has a UITableView and another

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.