开发者

How can I make an iPhone UITextField required?

开发者 https://www.devze.com 2022-12-09 04:22 出处:网络
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 -textFieldSho

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

精彩评论

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