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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:12:57+00:00 2026-05-26T20:12:57+00:00

I have found many core data with nsfetchedresultscontroller tutorials, but none of them are

  • 0

I have found many core data with nsfetchedresultscontroller tutorials, but none of them are easy to follow and most of them dont do what i want. All i want is a table view that adds/ and delets cells. I already have this working perfect! I just want to save the state of the table view when the app is left! Please some one point me in the right direction of a good tutorial!! Thanks everyone!

  • 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-26T20:12:58+00:00Added an answer on May 26, 2026 at 8:12 pm

    You are looking at the wrong place check in the UITableView class reference this method:

    -(NSArray *)visibleCells
    Returns the table cells that are visible in the receiver.

    Or Better :

    Returns an array of index paths each identifying a visible row in the receiver.
    – (NSArray *)indexPathsForVisibleRows

    And Finally

    Scrolls the receiver until a row identified by index path is at a particular location on the screen.
    – (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated

    If I’ve understand correctly your question
    those are the information you need to look at, the rest should be implementation detail.


    It’s not one or the other.
    You need to understand this, The only purpose of the NSFetchedResultsController is to maintain a collection of data.
    From time to time the UITableViewController call the NSFetchedResultsController and ask it, what are the information I need to display at this position.

    And on some other time the UITableViewController call the NSFetchedResultsController and tell it, hey… I’ve got that thing that someone told me to delete… well I don’t know what to do with that, could you take care of it (you have to implement so method for that).

    But in no condition the NSFetchedResultsController is aware of the position of the UITableView and it’s never tell it to go any where. It’s always the other way around.

    So yes you should continue learning Core Data it’s a very useful tool.

    As of your question, when your application is about to go to the background you have the time to look where your what are the visibleRows and save that information somewhere, like in the NSUserDefault. When you get back you read that data back and you tell the table view to go there, not animated.

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

Sidebar

Related Questions

I have found many tutorials about using Windows Server 2003 as a development machine,
I have found many people with simliar issues but no soultions...basically I have two
I have found many questions here about storing values in viewstate, but haven't found
I have had many problems in Django (not all of them solved), but this
Wondering how to open many new windows with Javascript. I have found plenty of
This is something I've pseudo-solved many times and have never quite found a solution
I have found some in the Cappuccino website (vim, textmate and SubEthaEdit), but not
I have been reading so many topics here about this, but I could not
I'm currently facing in problem using Core Data. I have two entities A and
I have found many references explaining how to programmatically compile a Java class using

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.