我有TableViewCell并且在这个单元格UILabel中。 我是这样的单元格:
TableViewCell *cell = [self.TableView dequeueReusableCellWithIdentifier:@"TableViewCell" forIndexPath:indexPath];
UIView *bgColorView = [[UIView alloc] init];
bgColorView.backgroundColor = kColorAppYellow;
[cell setSelectedBackgroundView:bgColorView];
if (indexPath.row == 0) {
cell.imageViewCell.backgroundColor = [UIColor clearColor];
cell.imageViewCell.image = [UIImage imageNamed:@"imageNamed"];
cell.imageViewArrow.image = [UIImage imageNamed:@"imageNamed"];
cell.label.text = @"bla-Bla-bla";
}
Code for second and others cell
if (indexPath.row == 1) {
cell.imageViewCell.backgroundColor = [UIColor clearColor];
cell.imageViewCell.image = [UIImage imageNamed:@"imageNamed"];
cell.imageViewArrow.image = [UIImage imageNamed:@"imageNamed"];
cell.label.text = @"bla-Bla-bla";
}
第一个单元格有正常文本,但第二个和第三个单元格在Label中有模糊文本,然后第四个单元格有正常文本...在一个屏幕上我只有3个可见单元格
如何在所有单元格中获得普通文本?
编辑:我解决了这个问题。将内容从TableView移动到CollectionView