I have a section in UITableView which has multiple rows. I wish to get the last row or the last cell of the section to add a disclosure indicator on it.
One way I am
Swift 4 version:-
let totalRow = tableView.numberOfRows(inSection: indexPath.section) if(indexPath.row == totalRow - 1) { return }