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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:55:36+00:00 2026-06-11T19:55:36+00:00

I need to pass information between two view controllers I have. In the past,

  • 0

I need to pass information between two view controllers I have. In the past, I have done this by importing my second view’s .h into my first view’s code, then implementing prepareForSegue in the first view and setting the values for the second view there. However, now my 2 view controllers are in a navigation controller, so there is no segue associated with the transition back to the root view controller (since it’s done with [self.navigationController popToRootViewControllerAnimated:YES]).

Is there a method similar to prepareForSegue that I can use with a UINavigationController pop? Or do I have to set up either delegates or NSNotifications to send information back to the root view?

  • 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-11T19:55:37+00:00Added an answer on June 11, 2026 at 7:55 pm

    A push segue is used to transition between one view controller and the next when they are in a UINavigationController. In your StoryBoard, drag from one view to the next and choose push as the segue type and set an identifier for the segue. Then you can setup up the destination view controller as normal.

    To pass information back, you will need to set up a delegate since the pushed view controller should not have detailed info about who called it.

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

Sidebar

Related Questions

I need to pass some information I have in a view to the controller.
I have this website, where I frequently find myself trying to pass information from
I'm trying to pass information between two of my applications in Delphi 2010. I'm
I am looking for a way to pass information safely (!) between two processes
I need to be able to pass identifying information through to Authorize.net's server so
I need to pass audio data into a 3rd party system as a 16bit
I need to pass information via a URL to a PHP function that parses
For some requirement I need to pass additional information to form submit handler. In
I've got 2 applications that utilize MSMQ to pass information between 2 servers. One
I need to find out how many days in between two date ranges. 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.