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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:57:12+00:00 2026-05-23T13:57:12+00:00

I am writing an iPhone app that has a number of UITextFields that requires

  • 0

I am writing an iPhone app that has a number of UITextFields that requires the user to input a bunch of data. I would like to have a simple ‘delete’ facility that allows the user to discard any data they have put in to the multiple fields.

I’ve been struggling with this issue for a few days now. I can’t seem to find a way of reaching into the individual text fields and changing the text. My app throws errors at me no matter what I try.

  • 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-23T13:57:12+00:00Added an answer on May 23, 2026 at 1:57 pm

    There are several ways of tackling this.

    You can write code to wipe each of them individually. To do this, you create an IBOutlet for each one, and assign a blank string to their text properties. If you only have a couple of fields, that’s simplest. If you have more, it’s not so good.

    You can make them all children of a common container view and loop over its subviews. That way, you only need to hook up a single IBOutlet.

    You can recurse over your entire view hierarchy and blank out all the text fields you find.

    Another approach, which isn’t very well documented by Apple, is to use an IBOutletCollection. That way, you can assign all of your text fields to the one IBOutletCollection and loop over it. This is probably the simplest, most straightforward way of doing it.

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

Sidebar

Related Questions

I have an iPhone app that I am writing and it has 2 targets
I am writing an iPhone app, that requires cloud back-end DB storage. I have
Im currently writing an iphone app that requires the downloading of data that needs
I'm writing an iPhone App that relies on getting the device location. Management have
I have a 32bit iMac that I am writing an iPhone app in Xcode
I'm a newb iPhone developer writing an app that has several large JPGs and
I am writing an app that requires the user's current location (lastknownlocation won't be
I have a coredata based iphone app and have an Entity that has latitude
Writing an iPhone app, and I'm getting my data from a REST API that
I'm writing an iPhone app that (like most apps) supports auto-rotation: You rotate your

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.