Custom UITextField

前端 未结 6 1567
北海茫月
北海茫月 2020-12-08 05:08

How would I go about creating a UITextField like the one in this image?

\"enter

6条回答
  •  既然无缘
    2020-12-08 05:44

    You probably want to use the background and borderStyle properties of UITextField. Setting borderStyle as UITextBorderStyleNone and create a custom background image to be stretched and used as the background property would be one approach.

    I suggest taking a look at those properties in the UITextField class reference.

提交回复
热议问题