In my project I've got UITableView. I need to assign different buttons, with different behaviours for different columns.
Question:
- Where is the correct way to set different behaviours & actions for buttons? Is it in
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
? - How is the correct way to assign different buttons with different behaviours to different columns? I am thinking about
[_buttonArray objectAtIndex:indexPath.section];
is it the right way?
Example: Column 1 - Button A -> after button A pressed change button.title
and size and do X.