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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:51:34+00:00 2026-06-15T14:51:34+00:00

every one, I have encountered a problem in ios 6 with secure textField. It

  • 0

every one,
I have encountered a problem in ios 6 with secure textField. It erases the content automatically when I click on Done button on the keyboard. I have checked the value of the secure textField.
In textFieldShouldReturn, the secureTextField.text is correct. But in textFieldDidEndEditing, the secureTextField.text becomes nil.

The same secureTextField works perfectly on ios 5.1. And if I make the secureTextField as a normal textField(not secured), then everything goes well. That’s to say, notSecuredTextField.text is correct either in textFieldShouldReturn or in textFieldDidEndEditing.

Any idea?

Here is the code :

  • (BOOL)textFieldShouldReturn:(UITextField *)theTextField{

    if (theTextField == self.textFieldPassword){
        if ([self.textFieldUserName.text length] != 0){
            [self loginMe];
            NSLog(@"should return %@", self.textFieldPassword.text);//The value is correct
            [self.textFieldPassword resignFirstResponder];
        }
    }
    return YES;
    

    }

- (void)textFieldDidEndEditing:(UITextField *)textField
{
    NSLog(@"Did End Editing %@", self.textFieldPassword.text);
    if(textField == _textFieldPassword){
        NSLog(@"in text field did end editing %@", self.textFieldPassword.text); // The value is null
    }    
}
  • 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-15T14:51:34+00:00Added an answer on June 15, 2026 at 2:51 pm

    It seems that calling resignFirstResponder will cause the undesired action. So copying the data before calling that method solves this problem. Of course, this doesn’t really solve the problem, it is just a solution for hiding the problem.

    I have created a new project for iOS 6, and the problem doesn’t come up.

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

Sidebar

Related Questions

I have encountered a strange problem on one of our machines. It is a
Hi every one I have these classe @Entity @Table(name = login, uniqueConstraints={@UniqueConstraint(columnNames={username_fk})}) public class
Hello every one I have wrote a simple code in html5 in which I
Hai every one I am developing an windows application in which i have to
I have to run a bit of code in the background every one second,
I have a windows service that does some intensive work every one minute (actually
I have a directory full of JPEGs. I want to convert every one of
I am writing my own blog (every one should, it's good experience). I have
I have a page with many tooltips. I want to show/hide every one seperatly
i have one setinterval method which call php script every 3 sec to check

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.