推 Boska:cell.selectionStyle = UITableViewCellSelectionStyleNone; 12/18 13:50
我有使用過這個方法
不過我在 edit mode 我的 edit 就會失效了@@?
因為我想要有前面那個打選擇到的打溝功能
※ 編輯: sorkayi 來自: 140.128.88.208 (12/18 14:49)
→ uranusjr:好像沒辦法單純 disable highlighting, 只能在正確的時間 12/18 15:07
→ uranusjr:自己呼叫 setHighlighted: 把它消掉 12/18 15:07
目前是使用到 UITableViewCellAccessoryCheckmark 這個 style 去做多選擇
但是在 edit mode 時
UITableViewCellAccessoryCheckmark 前面的打勾 背景會被變成淡藍色
還有我的 custom cell 也有用到 UIView 背景也會被變成淡藍色
不知道有沒有什麼方法可以解決@@?
※ 編輯: sorkayi 來自: 122.117.2.251 (12/19 01:35)
後來我在 custom cell 中全部都覆寫掉所有的
setHightlight 的兩個函式
並且在加入
[cell setSelectedBackgroundView: bgView];
就行了
bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 58, 44)];
bgView.backgroundColor = [UIColor colorWithPatternImage:
[UIImage imageNamed:@"favorite_part.png"]];
原來是我笨 >///<
※ 編輯: sorkayi 來自: 140.128.88.208 (12/24 17:57)