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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:30:14+00:00 2026-05-29T09:30:14+00:00

So I have this UINavigationController, I’m on the first moving to the next view,

  • 0

So I have this UINavigationController, I’m on the first moving to the next view, than I want to hit the ‘back’ button and to go back to the first view with the data that I saved into ‘strAddress’ on the second view. I want to present the data on the first view on ‘lblShowStr.text’.

how can I manage to do that? I’ve searched all the web, found some people that wrote, but couldn’t understand what they have been told there.

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-29T09:30:14+00:00Added an answer on May 29, 2026 at 9:30 am

    In your first view controller you might have an NSString property called strAddress.
    and you put that string into lblShowStr.text every time the view appears.

    In your second view controller you might have a property pointing to an instance of view controller one. When you instantiate your second view controller you could assign the property on it to the first view controller.

    secondViewController.firstViewController = self;
    or
    [secondViewController setFirstViewController:self];

    Then when the user presses the back button viewDidAppear would get called for the first view and update the string.

    I am assuming you don’t want to store this data anywhere else e.g. in your model or nsuserdefaults etc.

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

Sidebar

Related Questions

I have a UINavigationController that gets pushed a DetailsViewController. In this DetailsViewController, I want
I have this code in jQuery, that I want to reimplement with the prototype
I have this managedContextObject I want to pass from a view controller to another.
I want to do this simple thing: create a uinavigationcontroller but that doesnt show
I have a UINavigationController that has its left and right button properties set. Instead
I have a view hierarchy like this: nav1 (UINavigationController, top level object in nib)
I have added the 5 UINavigationController in my main Window. Like this [self.window addSubview:navgContForBuzzyRequest.view];
I have this RewriteRule that works too well :-) RewriteRule ^([^/]*)/$ /script.html?id=$1 [L] The
I have this method on a webpart: private IFilterData _filterData = null; [ConnectionConsumer(Filter Data
I have this line in a useful Bash script that I haven't managed to

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.