International keyboard and UITextField secure option
I have a UITextField in a .xib file with the secure option marked as YES. I have several international keyboards on my device. When the se开发者_运维技巧cure option is set to NO, I have no problem using all of the international keyboards on my device, but when it is set to YES, I am only able to use the English keyboard.
Is there a way to an option I can use to enable this feature, or would I have to do this manually (don't mark the secure option and replace the text the user enters with *'s)?
Thanks,
I believe - you need only English characters in your text fields. I prefer you to use following method. By using this method you can filter out what characters do you need & what is not needed.
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
}
精彩评论