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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:21:24+00:00 2026-06-01T20:21:24+00:00

I hope this is a simple question. If I have a UINavigationController and I

  • 0

I hope this is a simple question. If I have a UINavigationController and I push a new view controller onto the stack with an animated transition, how can I detect when the animation has finished and the new view controller is on screen?

I have a few scenarios where I need to push a new controller that then has to do a long-running operation. I’d like to push the new view first so there’s something on screen before I start blocking the main thread for a long time. If I do the push immediately followed by my long-running task the view won’t show up until after both are done of course and the main thread is able to process events again.

So, what I’d like to do be able to detect in the new controller once the animation is done and the view is on screen, and then start the task.

  • 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-01T20:21:25+00:00Added an answer on June 1, 2026 at 8:21 pm

    +1 to @DHamrick’s recommendation for not blocking the main thread at all.

    To answer the original question, you can detect viewController changes in two places:

    1. The viewController you just pushed will receive viewWillAppear: and viewDidAppear: messages. If you want to know when a specific viewController appears, implement these methods.

    2. The navigationController:didShowViewController:animated: method mentioned by @Mike Z is sent to the navigationController’s delegate. You will need to assign an object to be that delegate in order to receive this message. You will then know every time a viewController appears.

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

Sidebar

Related Questions

I have a simple question; hope you can help me. I have coded a
I have a quick and hopefully simple question that I hope someone can help
Very simple question I hope. I have the usual <select> box like this <select
I have a very simple (rather stupid) question, I hope someone can clear my
Simple question I hope. If I have a set of data like this: Classification
i hope this question is not too simple, but i have no idea :(
I hope this is a simple enough question for any SQL people out there...
I hope there's a simple solution for this: I have a table where each
I hope this is not a duplicate of a question, but I have three
I have a simple question for you (i hope) :) I have pretty much

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.