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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:54:47+00:00 2026-06-01T13:54:47+00:00

I have a UITableView based on a NSFetchedResultsController . To insert a new row

  • 0

I have a UITableView based on a NSFetchedResultsController. To insert a new row into the table, I open up a modal view controller, and I then hit the save button which dismisses the modal view and causes my NSFetchedResultsController delegate methods (willChangeContent, didChangeObject`, etc) to fire, which animates the inserting of a new cell. All is fine, but I want the user to witness this animation, and by the time the modal view has disappeared, the animation has already completed.

How can I delay this animation until the modal view completely disappears, so that the user can witness the animation?

  • 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-01T13:54:48+00:00Added an answer on June 1, 2026 at 1:54 pm

    This is a good question with or without the NSFetchedResults controller – you have a table vc that’s observing a model, and you want the user to see an animated change after a pop or dismiss from another view controller.

    There’s probably a better way, but the thing I did in a similar situation recently was to make the table vc do the model update itself, based on a delegate message from the subsidiary (pushed or modally presented) vc.

    So, in the table vc:

    AddingVC *addingVC = [[AddingVC alloc] initWithDelegate:self];
    [self presentModalViewController:addingVC animated:YES];
    
    // adding to the model will happen in this vc, based on a delegate message
    
    - (void)addingVcDidCreateAnObjectToAdd:(id)objectToAdd {
    
        // add to your model here
    }
    

    The adding vc does this (and I’m not totally proud of this, but it works)…

    - (void)thingIsReadyToAdd {
    
        SEL selector = @selector(addingVcDidCreateAnObjectToAdd:);
        [self.delegate performSelector:selector withObject:objectToAdd afterDelay:1.5];
        // 1.5 is on the long side, since the vc transition is about 0.5, so 1.0 is okay
    }
    

    In my case, I used a more conventional delegate protocol, passing the addingVC as the first param, but doing so with delay requires a verbose NSInvocation, so I skipped it here. +1 for the question that’s bothered me, too. I’m curious about others’ solutions.

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

Sidebar

Related Questions

I have a grouped UITableView. I am overriding the table row height, but I
I’m populating a UITableView based on the values of an NSMutableArray. This table view
I have a UITableView . I want to update the table data based on
I have a view based application and a UITableview in the view. I set
I've created a table view of log entries which are organized into section based
I have set up a UITableView-based app, which has a .plist for holding the
I have a UITableView populated with a location-based datasource. I'm calling [self updateView]; to
I have UITableView.when i click on it's 1 st row one another UITableView opens
I have a UITableView (on a navigation controller stack) which is showing details for
I have an iPad app. In the Root View I have a UITableView with

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.