I have the following implementation of the delegate method in iOS:

```
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {

if (textField.tag == 2){

        if(textField.text.length > 2) {

            return NO;

        }

        return YES;

    }

    else if (textField.tag == 3) {

        if(textField.text.length > 1) {

            return NO;

        }

}

```

The code is making the necessary restrictions to the user as far as the number of characters that they can enter. However, the textfield is also not allowing the user to edit the text once it has been entered. It doesn't allow any keystrokes (including the delete/backspace key). Is there a way to rectify this to maintain the text length restriction, but allow this value to be edited by the user?