Change UIFont in secure UITextField strange behaviour in iOS7

前端 未结 5 1720
情书的邮戳
情书的邮戳 2020-12-08 20:10

I create a simple project: https://github.com/edzio27/textFieldExample.git

where I add two UITextFields, one with login and second one with secure passw

5条回答
  •  一个人的身影
    2020-12-08 21:04

    Check this: UITextField secureTextEntry bullets with a custom font?

    There is an elegant solution by glyuck which I liked. http://github.com/elegion/ELFixSecureTextFieldFont He created a category on UITextField. To have nicely displayed dots you have to include ELFixSecureTextFieldFont.h and .m files and then call - (void)fixSecureTextFieldFont on your textField once like this:

    [yourCustomSecureTextField fixSecureTextFieldFont];
    

    That is it.

提交回复
热议问题