开发者

How can I make an iPhone UITextField required?

How can I m开发者_StackOverflow社区ake a UITextField required? In other words, if the entry is empty, then refocus them on the required field.


Set a delegate for your field, and implement -textFieldShouldEndEditing: in it.


check length of textfield by [textfieldname.length] > 0. if it is then move else do textfield became first responder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜