UITextField Keyboard backspace issue

Discussion in 'iOS Programming' started by Ankitthakur, May 5, 2011.

  1. macrumors newbie

    Joined:
    Jan 23, 2009
    #1
    Hi team,

    I want to detect when the user is clicking on backspace key in
    keyboard. The issue occurs when there is no text in keyboard and the
    user hits backspace. How could we detect this event. I tried with
    1) - (BOOL)textField:(UITextField *)textField
    shouldChangeCharactersInRange:(NSRange)range replacementString:
    (NSString *)string
    when there is no text, this method is not getting called.
    2) Similar issue occurs with notification :
    UITextFieldTextDidChangeNotification

    Please help.

    Thanks
    Ankit Thakur
     

Share This Page