custom UITextField with image as a background blinking cursor issue

后端 未结 3 467

I have a custom UITextField with a UIImage as a background. Now when I type in a text into this UITextField and the cursor is blinking I get this:

3条回答
  •  走了就别回头了
    2021-01-24 14:58

    What about creating a UIImageView with your image in it, and then embedding a borderless UITextField inside your image view? The text field will still be editable, but shouldn't interfere with the imageview behind it.

提交回复
热议问题