What would I send as the sender if a row is selected from a UITableView. I have a method that is an IBAction that normally takes an argument of type id.
:(id)sender
I want to call this same method from a UITableView when a row is selected, but I didn’t know what to pass as the sender. Thanks.
You can pass self.
if the method can handle sender being nil, you can also pass nil indicating it was called directly.
Which is preferred depends on the method.