<code>
-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSString *updatedString = [textField.text stringByReplacingCharactersInRange:range withString:string]; textField.text = updatedString; return NO;
}
</code>
UITextField with secure entry, always getting cleared before editing