Disable blinking cursor in UITextField?

前端 未结 10 1186
日久生厌
日久生厌 2020-12-24 06:31

I\'ve followed the instructions here and succesfully set up a UITextField that gets updated with a UIDatePicker. However the cursor in the UITextField is blinking, which see

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 06:53

    Totally silly hack, but if you set the text field's tint color in the UIView section of the Interface Builder property inspector to match the background color, the cursor will appear invisible:

提交回复
热议问题