-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