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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:44:52+00:00 2026-06-09T04:44:52+00:00

I have a view with a textfield and a button (to navigate to the

  • 0

I have a view with a textfield and a button (to navigate to the next view).

When I click the button a new view is loaded which has UITableView and is populated from a nsmutablearray. I am selecting multiple rows here, which I am saving in a variable when i click on the button, clicking on this button also takes me back to my first view

Now what I want to do it that this selected data from the second view uitableview or from the variable where i save it should be displayed in the textfield in the first view when I go back.

I don’t know how to do this. I am new to xcode. Can someone please help me? Thank you.

  • 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-09T04:44:54+00:00Added an answer on June 9, 2026 at 4:44 am

    The problem with your current approach is that you store the selected data on the view that you are removing from the memory when turning back to the first view. You should try to follow a kind of MVC (Model View Controller) pattern.

    To keep things short: centralize your data in one place in your app. Like for instance on a Model class on the RootViewController and access the data from there. When the user selects a few rows then write back to the model which ones were selected and return to the previous view. Then, when back at the previous view, read what elements were selected from this centralized model and show them back to the user.

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

Sidebar

Related Questions

i have a table view in which each cell has a TextField where the
I have a button and text textfield in my view. when i click on
i have view controller which contains a button which show the image library ,if
I have an alert view for twitter posting. Alert view has 2 button and
i have a text held in my main view and a button next to
i have been trying to copy text input from alertview textfield to a NSMutableArray
In my VIew, i have added a button and when i click on it,
In my iPhone APP I have a view with a textfield and a button
I have add a view with button in UITableView Header . I have set
I have implemented code for alert view with textfield here when i click on

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.