Hide the cursor of an UITextField

后端 未结 13 852
甜味超标
甜味超标 2020-12-07 07:51

I am using a UITextField with a UIPickerView for its inputView, so that when the user taps the text field, a picker is summoned for th

13条回答
  •  旧时难觅i
    2020-12-07 08:19

    As of iOS 7 you can now just set the tintColor = [UIColor clearColor] on the textField and the caret will disappear.

提交回复
热议问题