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.
精彩评论