Inside the UITableViewCell is a button. I've set the target for that button to the File's Owner.
The File's Owner is my own custom tableViewCellController (UITableViewCell subclass).
Inside my TableView controller, I add the custom cell to my table view (inside cellForRowAtIndexPath:):
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomTableViewCell" owner:self options:nil];
CustomTableViewCell *cell = [nib objectAtIndex:0];
return cell;
When I click the button, the action is sent to my tableViewController rather than my tableViewCellController.
In the XIB file, the action is shown as such:
<action selector="myAction:" destination="-1" eventType="touchUpInside" id="..."/>
In my case, having my tableViewController handle the action will work OK, but I would expect the action to go to my tableViewCellController instead.
Can someone point me to some info so I can understand why my actions are being sent where they are?