NSString *textString ;
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:2];
MemInforCell *cell=(MemInforCell *)[self.infoTable cellForRowAtIndexPath:indexPath];
NSArray *viewArrays=[cell subviews];
for (id object in viewArrays) {
if ([object isKindOfClass:[UITextField class]]) {
UITextField *textfield=(UITextField *)object;
textString = textfield.text;
}
}
//获得section
// NSInteger section = [[self.infoTable indexPathForCell:(UITableViewCell *)[textField superview]] section];
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:2];
MemInforCell *cell=(MemInforCell *)[self.infoTable cellForRowAtIndexPath:indexPath];
NSArray *viewArrays=[cell subviews];
for (id object in viewArrays) {
if ([object isKindOfClass:[UITextField class]]) {
UITextField *textfield=(UITextField *)object;
textString = textfield.text;
}
}
//获得section
// NSInteger section = [[self.infoTable indexPathForCell:(UITableViewCell *)[textField superview]] section];