0
我一直在使用默認顏色灰色和藍色的單元格選擇,但我想嘗試一個明亮的橙色,但我不知道如何做自定義的UITableview選擇。自定義selectionStyle顏色爲uitableviewcell
這是我使用此刻的代碼..
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.selectionStyle = UITableViewCellSelectionStyleGray;
我也曾嘗試
[cell setSelectionStyle:[UIColor orangeColor]];
,但我得到一個警告說setSelectionStyle不是整數的東西。