UITableView에서 스크롤 할 때 셀 텍스트 필드 값에 문제가 있습니다. 아래로 스크롤하여 사용자 정의 셀을 숨기면 textField의 값이 삭제됩니다. dequeueReusableCellWithIdentifier 메소드가 작동하지 않습니다. 나는이있다 : 일반적으로 reuseIdentifier 당신이 펜촉에서보기를로드하기 때문에 사용하지 않는있는 UITableViewCell의 initWithStyle:reuseIdentifier:
방법에 할당iPhone dequeueReusableCellWithIdentifier with 텍스트 필드 삭제 값이있는 사용자 정의 셀
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *SectionsTableIdentifier = @"MyCustomCell";
MyCustomCell *cell = (MyCustomCell *) [tableView dequeueReusableCellWithIdentifier:SectionsTableIdentifier];
if (cell == nil) {
NSArray *objects = [[NSBundle mainBundle] loadNibNamed:@"MyCustomCell" owner:self options:nil];
cell = [objects objectAtIndex:0];
}
cell.labelCustomAttribute.text= @"Attribute Name";
cell.textFieldCustomAttribute.delegate = self;
return cell;
}
방법이 태그 값이 저장되어 있는지 확인? – Dab88