Я использую пользовательскую ячейку просмотра таблицы для своего вида tableview. Для установки границы я поместил представление в пользовательскую ячейку, и я изменяю его свойства границы.
self.borderView.layer.borderColor = VIEW_BORDER_COLOR;
Я хочу выделить выделенную ячейку, изменив ее цвет границы. Я попытался изменить его в didselectrowforindexpath,
cell.borderView.layer.borderColor = [UIColor yellowColor].CGColor;
но при повторном использовании ячеек он изменяется при прокрутке.