【iOS】UITableViewCellのセル選択ハイライトの色を変更する
UITableViewCellにはselectedBackgroundViewというプロバティが用意されてるので、そこにViewをセットするだけ!
// ハイライトカラー設定 let highlightedView = UIView(frame: self.frame) highlightedView.backgroundColor = .white selectedBackgroundView = UIView(frame: self.frame)
ね、簡単でしょ?
参考: selectedBackgroundView - UITableViewCell | Apple Developer Documentation