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:
parent
c47b8120ea
commit
a1cf97879d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue