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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:52:14+00:00 2026-06-16T19:52:14+00:00

Had a quick question: I have 2 view controllers, and their associated views. The

  • 0

Had a quick question:

I have 2 view controllers, and their associated views.

The first VC have images which have been coloured through masking. This is a link to the technique I will be employing.

The second VC and view is simply a settings screen that will hold random content.

Assume this scenario:

  1. First VC with images is loaded up and the coloring is completed

    NOTE: Coloring is random and the value is not stored anywhere. With
    so many images it would be difficult to store all those random
    colors in variables.

  2. On the First VC the user presses the button navigating to the
    setting screen

  3. the Second VC is now loaded, via a Modal operation

  4. On the Second VC the user presses a “back” button to return to
    the previous VC, which in this case is the First VC.

The question: During navigation and after the the navigation back to the First VC will the images and colors I randomly and programmatically chose still be visible or will I lose those randomly generated colors? If not how do I ensure that what has been rendered on the First VC will be maintained throughout any navigation operations?

  • 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-16T19:52:15+00:00Added an answer on June 16, 2026 at 7:52 pm

    As long as the View Controller stays on the navigation stack, all of the data it holds will still be valid when you return to it. Pushing any number of View Controllers on top of the stack will do nothing to the first view controller, but as soon as you pop the first one off of the stack, it will lose any data it had unless saved otherwise and reloaded(in a variable in the App Delegate, for example).

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

Sidebar

Related Questions

I've been playing with Spring and had a quick question... I have a loop
Folks, I had a quick question about Amazon EC2, I have been recently using
I had a quick question regarding RegEx... I have a string that looks something
Alrighty, coding in Perl and just had a quick question. I have class created
New to OOP with Perl, and just had a quick question. I have this
Evening all, I just had a quick question about SQL average queries. I have
I had a quick question on static blocks in AS3. I have a library
Just a quick question. I have a system which contains some silverlight elements to
I had a quick question that's been bugging me. I'd like to place a
I've been broadening my horizons learning javascript and I have a quick question about

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.