草庐IT

ribbonView

全部标签

ios - 在 UITableViewCell 中有条件地显示图像

我试图仅在UITableView的某些单元格中显示图像。这是我的configureCell方法:-(void)configureCell:(UITableViewCell*)cellatIndexPath:(NSIndexPath*)indexPath{StoryInfo*info=[self.fetchedResultsControllerobjectAtIndexPath:indexPath];UIImage*ribbon=[UIImageimageNamed:@"ribbon.png"];UIImageView*ribbonView=[[UIImageViewalloc]init