我使用這個代碼來定義我的手機背景圖的顏色:不能設置自定義BACKGROUNDCOLOR上的UITableViewCell
UIColor *cellBackgroundColor = [UIColor colorWithRed:255.0 green:255.0 blue:255.0 alpha:1.0];
cell.contentView.backgroundColor = cellBackgroundColor;
的事情是,這是行不通的。此代碼雖然工作得很好:
cell.contentView.backgroundColor = [UIColor redColor];
這裏有什麼問題?我不能根據自己的喜好自定義單元格的顏色嗎?或者我做錯了什麼?
沒有看到的顏色,在顏色是透明的? –