그래서이 코드의 UITextField 텍스트 중복
if (tableView.tag == RECO_TABLE) {
CustomCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CustomCell"];
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
NSString *roomName = [selectedRooms objectAtIndex:indexPath.row];
[cell.cellRoomName setText:roomName];
return cell;
}
그리고 내 사용자 정의 셀 내부가
@property (weak, nonatomic) IBOutlet UILabel *cellRoomName;
@property (weak, nonatomic) IBOutlet UITextField *cellRoomPrice;
cellRoomName 괜찮 하지만 cellRoomPrice가 복제 유지하다이 내 행에 도달 할 때> 5 및 재사용 셀의 개념을 알고 있지만 시작하는 방법을 모르겠습니다.
은 BTW 여기
행 1 = 40
행 2 = 2
행 3 = 널
행 4 = null이
행 5 = null이
내 샘플 시나리오입니다행 6 = 40
행 7 = 2
따라서 5 행마다 내 행이 복제됩니다.
내가 이것에 대해 이상한 볼 수 없었다. 왜 당신은 5 행이 복제되었다고 말하고 있습니다. –