- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView endEditing:YES];
}
newcell.textfeild.delegate = self;
newcell.textfeild.tag = indexPath.row;
newcell.textfeild.text = self.arrayWithCell3[indexPath.row];
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
self.arrayWithCell3[textField.tag] = [textField.text mutableCopy];
return YES;
}
[_tableveiw registerClass:[CustomCell class] forCellReuseIdentifier:@"cellID"];
[_tableveiw registerClass:[CustomCell1 class] forCellReuseIdentifier:@"cellID1"];
[_tableveiw registerClass:[CustomCell2 class] forCellReuseIdentifier:@"cellID2"];
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = nil;
if (indexPath.section == 0) {
cell = [tableView dequeueReusableCellWithIdentifier:@"cellID"];
CustomCell *newcell = (CustomCell *)cell;
newcell.label.text = @"00000";
}else if (indexPath.section == 1){
cell = [tableView dequeueReusableCellWithIdentifier:@"cellID1"];
}else {
cell = [tableView dequeueReusableCellWithIdentifier:@"cellID2"];
CustomCell2 *newcell = (CustomCell2 *)cell;
newcell.textfeild.delegate = self;
newcell.textfeild.tag = indexPath.row;
newcell.textfeild.text = self.arrayWithCell3[indexPath.row];
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}