I have a table view that I use for editing a certain object which represents a football match. It has a few properties, and then it has two cells where the user should be able to select a team. I'm thinking when they click the button I want to push a new view controller where the user can select an existing team or create a new one.
Right now I have this code:
SCTableViewCell *cell;
cell = [SCTableViewCell cellWithText: @"Home Team"];
cell.boundKey = @"homeTeam";
cell.delegate = self;
[teamSec addCell: cell];
cell = [SCTableViewCell cellWithText: @"Away Team"];
cell.boundKey = @"awayTeam";
cell.delegate = self;
[teamSec addCell: cell];
But when the didSelectCell: method is called, I'm not sure how to best differentiate the cells.
What would be the best way to solve this?
I guess what would be nice was to have a cell that could call a specific selector when selected.