【Xcode】TableViewでセルを選択してもハイライトにしない方法

Xcode でセルを選択してもハイライトにしない記述

//Objective-C での書き方
————————————————–
– (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@”Cell3″ forIndexPath:indexPath];

//ここ
cell.selectionStyle = UITableViewCellSelectionStyleNone;

}
————————————————–

タイトルとURLをコピーしました