settingsview : when clicking detailButton, call rowSelected - so that when user clicks detailButton next to License, same happens as if row was selected.

This commit is contained in:
Johan Degraeve 2019-07-27 22:28:32 +02:00
parent c47b8120ea
commit a1cf97879d
1 changed files with 8 additions and 0 deletions

View File

@ -386,6 +386,14 @@ extension SettingsViewController:UITableViewDataSource, UITableViewDelegate {
}
}
}
func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) {
// apple doc says : Use this method to respond to taps in the detail button accessory view of a row. The table view does not call this method for other types of accessory views.
// when user clicks on of the detail buttons, then consider this as row selected, for now - as it's only license that is using this button for now
self.tableView(tableView, didSelectRowAt: indexPath)
}
}
/// defines perform segue identifiers used within settingsviewcontroller