Caps Lock Image on Password Protected UITextField

前端 未结 3 1244
暖寄归人
暖寄归人 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:51

    There is no clean way to do this (that I know of), but it can be done by placing a white image over were the caps lock appears.

    This way, the caps lock image will always be hidden.

    Make sure to place the NSImageView control after the NSSecureTextView control (in the UI Builder), so the image will be drawn after the NSSecureTextView control is drawn.

提交回复
热议问题