1
테이블보기를 사용하여 목록을 표시하고 있습니다. 하나의 셀에만 UITableViewCellStyleValue1
이 있습니다. 문제는 위/아래로 스크롤 할 때 세부 텍스트가 잘 표시되지 않는다는 것입니다. 여기에 코드가 있습니다.테이블 뷰 셀 스타일 문제 - UITableViewCellStyleValue1
// Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { if(indexPath.row == 0) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; cell.textLabel.textColor = [UIColor whiteColor]; cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; cell.detailTextLabel.textColor = [UIColor yellowColor]; cell.detailTextLabel.text = @"Description"; } else { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; cell.textLabel.textColor = [UIColor whiteColor]; cell.accessoryType = UITableViewCellAccessoryNone; } } // Configure the cell. cell.textLabel.text = [radioList objectAtIndex:indexPath.row]; return cell; }
나를 도와 줄 수 있습니까?
답장을 보내 주셔서 감사합니다. –