出于某种原因,我的UITableViewCells都没有突出显示蓝色.在IB中,我将其设置为突出显示蓝色,并且我没有覆盖IB的代码.
你注意到可能导致这种情况的任何事情吗?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { int showID = [[[singleton.programs objectAtIndex:indexPath.row]objectForKey:@"id"]intValue]; //creates the url and loads the list of products //NSLog(@"showID: %d",showID); URLCreator * productsURL = [[URLCreator alloc] initStandard:@"getProgramProductsForList"]; [productsURL addParam:@"id" stringValue:[NSString stringWithFormat:@"%d",showID]]; WebManager *productsWM = [[WebManager alloc]init]; [productsWM load:[productsURL finalURL] withSelector:@selector(parseProducts) object:[NSNumber numberWithInt:showID]]; }
除了`@ property / @ synthesize @之外,我的自定义单元格目前还没有任何内容,但现在它是.
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { // Initialization code } return self; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state }