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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:06:14+00:00 2026-05-28T07:06:14+00:00

I have to present 4 view controllers in sequence. One is the continuation of

  • 0

I have to present 4 view controllers in sequence. One is the continuation of the other. They are presented by a navigationController.

A > B > C > D

if I go to A, then to B, then to C and go back to B, when I return to C it appears faster the second time. I suppose all C are being cached or stored somehow. The problem with this is that, for example, C calls a UIImagePickerController the first time it enters but not the second one. Why?

The UIImagePickerController is presented inside C’s viewDidLoad, by a line like

[self.navigationController presentModalViewController:picker animated:YES];

but obviously, if C is being “cached” viewDidLoad will not run the second time, and this is why the picker is not being called, except for the first time.

I like the idea of a cached VC, because it is fast as hell to go back and forward, but, where should I put the call to the picker, so it is called correctly? I thought it would be viewWillAppear, but I tried that and this method is never called.

any ideas? thanks

  • 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-28T07:06:15+00:00Added an answer on May 28, 2026 at 7:06 am

    Double-check viewDidAppear:. This is the correct place for the code you’re describing. If it’s not being called, that suggests you’re doing something else incorrectly, or that you’re using the wrong signature for the method.

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

Sidebar

Related Questions

I have 3 view controllers (VCs) A B C. Firstly i present A. Then
I have two view controllers, one is main and second is detail. Whenever I
I am trying to present a modal view controller. I have read the documentation,
I have a dilema, I want to present to the user a semi-transparent view.
I have a UINavigationControl and I would like to present a view controller pushing
I have a view controller that I would like to present in a modal
I have an app which consists of three layers of view controllers: UITabBarController =>
i'm transitioning to a new view, i present the new view and then call
In my application i have 6 different view controllers. 1. Home page 2. A
I have two view controllers: LocationsViewController , and SettingsViewController . LocationsViewController conforms to the

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.