I need to know how to set the state of a tableviewcell to selected via code.
I tried the following:
let cell:TblCell = tableView.cellForRowAtIndexPath(indexPath) as TblCell
cell.selected = false;
But this didn't work, even though it did not give any errors.
Should this have worked? or is this done differently?