-1
我有一个自定义单元格,并在方法numberOfRowsInSection
返回100
在表格视图中显示该自定义单元格。在tableView中显示100个自定义单元格与UITextField
但是,当我编辑其中一个textfield
它也会反映其他文本字段中的更改。 这是我的cellForRowAtIndexPath
NSString *CellIdentifier = @"viewAllProductsGridCell";
ViewAllProductsGridCell *cell = (ViewAllProductsGridCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"ViewAllProductsGridCell" owner:self options:nil];
cell = gridCell;
}
代码U将请告诉我如何创建多个实例为每个单元
后置代号 - (UITableViewCell的*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath' – Nekto