if (textField == self.putInTextField) {
if (textField.text.length > self.dataModel.peoplenum.length) {
textField.text = [textField.text substringToIndex:self.dataModel.peoplenum.length ];
}
}
if (textField == self.putInTextField) {
if (textField.text.length > self.dataModel.peoplenum.length) {
textField.text = [textField.text substringToIndex:self.dataModel.peoplenum.length ];
}
}
本文标题:iOS UITextField限制输入长度
本文链接:https://www.haomeiwen.com/subject/tcamcxtx.html
网友评论