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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:27:09+00:00 2026-06-03T22:27:09+00:00

I have a simple program for iOS that contains numerous text fields. What I

  • 0

I have a simple program for iOS that contains numerous text fields. What I want is for the text in these fields (the user provides the input) to stay, even after switching screens. For example, if the user inputs “hello” in my text field and then segues to another screen, I want the word “hello” to still be in the text field if he returns to the screen again.

What is the best way to do this? Should I create a model, and everytime there is a segue, store the text in the fields to the model? Then if they segue back, reload the text?

  • 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-03T22:27:09+00:00Added an answer on June 3, 2026 at 10:27 pm

    If you require anything persistent then you should be storing this information in a model, that is controlled and synced with a view via a view controller. The text field should notify the view controller, and the view controller should update the model. Likewise, when the view controller is reloaded, it should update the view from the model.

    This stuff can be done automatically with key/value binding.

    I suggest doing a search for “model view controller design pattern ios” and “key value binding ios” in Google to get the information that explains this better. You’ll be a better Objective-C programmer for it, as Cocoa is based around the MVC (Model View Controller) paradigm.

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

Sidebar

Related Questions

I want to have simple program in python that can process different requests (POST,
i have a simple program that sorts a text file according to length of
Hello i have a simple program that opens up a text file and changes
Say I have simple program that emulates a board game with a number of
I have a simple program that creates a thread, loops twenty times and then
I have a simple program that reads data from a PNG into a 2D
I have a simple python program that I'd like to daemonize. Since the point
I have a small IOS program and that get a time from a database
I have a simple program that takes an ID number and prints information for
I have a simple data file that I want to load, in a C++

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.