UITextField secureTextEntry - works going from YES to NO, but changing back to YES has no effect

前端 未结 5 1801
无人及你
无人及你 2021-01-31 09:13

The above says it all- I have a UITextField set to secure, but want to give users the option to make it not secure (so they can see for sure what they typed if they are in a pri

5条回答
  •  执念已碎
    2021-01-31 09:58

    With iOS, you should never try to "hack" stuff, if the behavior you want is not provided by the framework, change your mind !

    First its easier ^^, second the user will not be responsive to this, then you never know if the next iOS update will break it or not, so it can be dangerous for your application.

    "You want the user sees the password he is taping on a secured textfield", you can display a UILabel in the bottom instead ? Or a confirmation Alert box with the clear password ?

提交回复
热议问题