开发者

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{

}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜