错误是:
2013-04-02 14:46:07.180 ECom[7855:c07] -[UITableViewController setItemRow:]: unrecognized selector sent to instance 0x768c770
2013-04-02 14:46:07.180 ECom[7855:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableViewController setItemRow:]: unrecognized selector sent to instance 0x768c770'
在方法 int 代码的最后一行:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if([segue.identifier isEqualToString:@"clPanelSegue"])
{
NSIndexPath *path = [self.tableView indexPathForSelectedRow];
ECOMClPanelDetailViewController *detail = (ECOMClPanelDetailViewController*)segue.destinationViewController;
NSLog(@"clPanelSeguePathRow = %d", path.row);
[detail setItemRow:path.row];
}
}
最后一行的方法是
-(void)setItemRow:(int)aItemRow
{
clDetailItemRow = aItemRow;
}
无法理解出了什么问题。谁能帮忙?