禁止输入空格这问题简单
- 给textfield一个监听UIControlEventEditingChanged
- 然后一句代码OK
textField.text = [textField.text stringByReplacingOccurrencesOfString:@" " withString:@""];
事还没完,前面不是重点,重点是要加判断的
禁止输入空格这问题简单
textField.text = [textField.text stringByReplacingOccurrencesOfString:@" " withString:@""];
事还没完,前面不是重点,重点是要加判断的