Max length UITextField

后端 未结 18 1827
一个人的身影
一个人的身影 2020-11-30 17:42

When I\'ve tried How to you set the maximum number of characters that can be entered into a UITextField using swift?, I saw that if I use all 10 characters, I can\'t erase t

18条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 18:13

    I posted a solution using IBInspectable, so you can change the max length value both in interface builder or programmatically. Check it out here

提交回复
热议问题