|
|
@@ -282,6 +282,15 @@
|
|
|
return headView;
|
|
|
}
|
|
|
|
|
|
+- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
|
|
|
+ NSString *beString = [textField.text stringByReplacingCharactersInRange:range withString:string];
|
|
|
+ if ([beString length] > 16) {
|
|
|
+ textField.text = [beString substringToIndex:16];
|
|
|
+ return NO;
|
|
|
+ }
|
|
|
+ return YES;
|
|
|
+}
|
|
|
+
|
|
|
- (void)setModelSelectInRow:(NSInteger)row
|
|
|
{
|
|
|
for (int i=0; i<_curDataArr.count; i++) {
|