Caps Lock Image on Password Protected UITextField

前端 未结 3 1245
暖寄归人
暖寄归人 2021-01-20 20:20

I am creating an app that requires the use of a USB Keyboard. (The normal touch screen keyboard has been disabled and will not show up.) When the user installs the app for t

3条回答
  •  渐次进展
    2021-01-20 20:52

    You can add Images to the textfiled like in the way given in the sample code given below:

    Swift add icon/image in UITextField

    But to check if you caps lock is on or not, I think there isn't any proper way to do that. Maybe you can check in "textFieldShouldReturn" method if the typed character is uppercase or lower case, every-time time when user types a character.

提交回复
热议问题