Iphone 如何在ios 8中将多个文本字段添加到同一indexpath.row

Iphone 如何在ios 8中将多个文本字段添加到同一indexpath.row,iphone,uitableview,uistoryboard,dynamic-allocation,Iphone,Uitableview,Uistoryboard,Dynamic Allocation,我想在同一个单元格索引路径上创建一个10个文本字段。我如何才能做到这一点,从中获取值,我想在故事板中动态地执行此操作。任何人都可以建议我如何执行此操作 if (cell != nil) { cell = [[tableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; for (int i=indexPath.row ;i< [self.dat

我想在同一个单元格索引路径上创建一个10个文本字段。我如何才能做到这一点,从中获取值,我想在故事板中动态地执行此操作。任何人都可以建议我如何执行此操作

if (cell != nil) {

    cell = [[tableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];

    for (int i=indexPath.row ;i< [self.dataArray count];i++) {
        UITextField *valueTextField = [[UITextField alloc] initWithFrame:CGRectMake(8,10,88,21)];
        valueTextField.tag = indexPath.row;
        [valueTextField borderStyle];
        valueTextField.backgroundColor =[UIColor grayColor];
        valueTextField.delegate = self;
        valueTextField.placeholder=@"Placeholder";
        [cell.contentView addSubview:valueTextField];


        cell.editingAccessoryType = YES;
    }
}

创建动态帧并执行此操作。