|
@@ -746,11 +746,18 @@ static const int totalPage = 3;
|
|
|
- (void)textFieldDidEndEditing:(UITextField *)textField
|
|
- (void)textFieldDidEndEditing:(UITextField *)textField
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- [super textFieldDidEndEditing:textField];
|
|
|
|
|
|
|
+// [super textFieldDidEndEditing:textField];
|
|
|
|
|
|
|
|
UITableViewCell *cell = (UITableViewCell *) textField.superview.superview;
|
|
UITableViewCell *cell = (UITableViewCell *) textField.superview.superview;
|
|
|
NSIndexPath * indexPath = [self.editorTable indexPathForCell:cell];
|
|
NSIndexPath * indexPath = [self.editorTable indexPathForCell:cell];
|
|
|
|
|
|
|
|
|
|
+ // table滑动后,cell可能会滚出table visible范围,此时indexPath为nil
|
|
|
|
|
+ if (indexPath == nil) {
|
|
|
|
|
+ indexPath = self.lastedit_from;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 避免提前将lastedit_from置空
|
|
|
|
|
+ [super textFieldDidEndEditing:textField];
|
|
|
|
|
|
|
|
NSMutableDictionary* section_json=nil;
|
|
NSMutableDictionary* section_json=nil;
|
|
|
|
|
|