Set the maximum character length of a UITextField

前端 未结 30 2318
难免孤独
难免孤独 2020-11-22 02:27

How can I set the maximum amount of characters in a UITextField on the iPhone SDK when I load up a UIView?

30条回答
  •  忘掉有多难
    2020-11-22 03:00

    I have open sourced a UITextField subclass, STATextField, that offers this functionality (and much more) with its maxCharacterLength property.

提交回复
热议问题