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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:00:29+00:00 2026-06-15T15:00:29+00:00

I have a screen with 6 UITextFields and 1 UIBarButtonItem called Done. As soon

  • 0

I have a screen with 6 UITextFields and 1 UIBarButtonItem called “Done”. As soon as the user type anything on any of the 6 UITextFields I would like to enable my UIBarButtonItem called “Done”, and also if the user delete the content I would like to return my UIBarByttonItem called “done” to disable mode. I would like to apply the same rule that Apple applied when you are adding a new contact in the iphone agenda. As soon as you type any information you are allowed to tap “done”. Is there any smart way to that?

Many thanks,
Marcos.

  • 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-15T15:00:30+00:00Added an answer on June 15, 2026 at 3:00 pm

    You need to setup a method to be called whenever a text field is changed. Apply this same method to all of the text fields. In the method, you check if the text field has text or not. Based on that check, you enable or disable the button.

    // Do this for each text field.
    [textField addTarget:self action:@selector(textFieldChangedAction:) forControlEvents:UIControlEventEditingChanged];
    
    - (void)textFieldChangedAction:(UITextField *)textField {
        if (textField.text.length) {
            // enable button
        } else {
            // In this method, check every text field for text. If any have text, enable button
            // If none have text, disable button.
        }
    }
    

    Edit:

    You will need an instance variable for all of the text fields so you can access all of them to see if the button should be disabled or not.

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

Sidebar

Related Questions

I have a UIControl type screen which has a fullscreen UIScrollView and UITextFields on
I have a screen with pivot functionality, and I'd very much like just one
I have a screen where you can enable/disable modules for my Android application. For
hii every one i have created a data entry screen like this in which
I have a login screen with two textfields (username and password). When the user
I would like to reproduce a screen similar to the Facebook Update Status view
I have 9 screen coordinates, each representing one of 9 positions. From the top
i have a screen and it is i want the buttons to put under
I have search screen which has 10 fields and involves around 5 to 6
I have a screen that is supposed to have a few large sections of

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.