을 ... 스크롤 한 후 행을 반복사용자 지정 UITableViewCells 내가 해결책을 찾고 있어요
코드 : I 셀에 문제가 반복하여, 문제가 될 때 발생하는 경향이 있음을 발견
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *CellIdentifier = @"ItemCardapio";
NSString *nibName = @"ItemCardapioCell";
ItemCardapioCell *cell = (ItemCardapioCell *) [self.restaurantsList dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:nibName owner:self options:nil];
cell = (ItemCardapioCell *)[nib objectAtIndex:0];
[cell initCellWithRestaurant:@"" tipoRestaurante:@""];
}
return cell;
}
1. 무엇을위한 솔루션을 찾고 있나요? 2. 코드에 의미있는 설명을 추가하십시오! 3. 코드를 포맷하십시오! – Krizz