How to get the selected row or selected cells in UITableView iOS swift
solution:
You can get the selected rows or selected cells by using the below code.It will return the array of indexPath.You can get and set it by using the arrays.
For selected Rows:
let selected = tableView.indexPathsForSelectedRows
You can get the selected rows or selected cells by using the below code.It will return the array of indexPath.You can get and set it by using the arrays.
For selected Rows:
let selected = tableView.indexPathsForSelectedRows
For selected Sections:
let selected = tableView.indexPathsForSelectedSections
let selected = tableView.indexPathsForSelectedSections
Comments
Post a Comment