i have a tvOS application where in im using custom tableview cells, lets say i have 3 tableviewcells.
Now i need to make programmatically update the focus from one cell to another cell.
i tried using the func selectRow(at indexPath: IndexPath?, animated: Bool, scrollPosition: UITableViewScrollPosition)
where it doesnt select that cell(as the focus is still on the previous cell not on the one i desired)
It scrolls to particular cell but doesnt change the focus
So is there any way in i can make the focus to programmatically move from one tableview cell to another?
My TableviewStucture is like below
I have the cell reference of destination cell to reach.
cellForRow(at indexPath: IndexPath) -> UITableViewCell?
).Thanks in advance.
This problem can be solved with using indexPathForPreferredFocusedView
, which works just fine.