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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:12:44+00:00 2026-05-25T06:12:44+00:00

Men, I don’t believe that this will be a problem to me. If I

  • 0

Men, I don’t believe that this will be a problem to me. If I press a key in keyboard, the UITextField delegate trigger the function:

 - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
       if ([string lenght]==0) NSLog("Backspace was pressed");
 }

But the problem is: when the text is empty and I press backspace, this function IS NOT called. There are a way to detect the backspace was pressed in this situation?

Or I will have to send this bug to Apple?

Ps. I need this for the cursor go to previous UITextFild (if have one character and press backspace, it work)

  • 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-25T06:12:44+00:00Added an answer on May 25, 2026 at 6:12 am

    Well I don’t think this is a bug because the textfield is empty and therefore no characters have been changed in the range hence why the method isn’t being fired. The UITextFieldDelegate Documentation by Apple says:

    The text field calls this method whenever the user types a new character in the text field or deletes an existing character.

    There are no existing characters in the TextField so the method is not fired. It doesn’t help answer the question but it’s not a bug in the SDK

    To get the behaviour you want, this question is already answered here: Can I detect the delete key even if the UITextField is empty?

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

Sidebar

Related Questions

to be honest, I don't really know what the small green men in my
please consider this image: I have a table like this: Age Active Men/Women -------------------------------------------------
How can I build a query statement like this: select * from men where
If I write this query: select Fname,Age*2 as Demo from Men where Demo =
i have table (MEN) with 900,000 records. in this table i have field IP
I'm using PHP to output our XML sports scores, in this example men's basketball.
this is my class #import Year2011.h @implementation Year2011 - (void)Men:(double)speed{ if (ramspeed <= 180000)
I have the following code for a trigger: create trigger trPassDat ON men FOR
This could be a dumb question, but men, I'm newbie on iPhone-sdk. I walk
please consider this image: I have a table like this: Age Active Men/Women -------------------------------------------------

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.