cell.selectedBackgroundView.backgroundColor = [UIColor whiteColor];//选中后变换,色彩的变换 cell.textLabel.highlightedTextColor = [UIColor colorWithRed:0/255.0 green:180/255.0 blue:140/255.0 alpha:1];//选中label颜色的变化 cell.textLabel.textColor = [UIColor whiteColor]; cell.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"fenlei-weidaidi"]]; cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"fenlei-daidi"]];//选中后变换,图片的变换
时间: 2024-10-10 17:40:19