I have two UITableView
s. The first UITableView
contains an array of data, and the second is empty. How can I get the index path of the first table to use it in the second table to view different data? This is an example of what I want to do in the second table:
This is in the second table and like this function where I want to get the indexPath.row
of first table.
func loadData() {
if indexPath.row == 0 { // (of first table)
// add code
} else if indexPath.row == 1 { // (of first table)
// add code
}
}
Implement
didSelectRowAt