2013-05-07 72 views
0

当我进入一个uitableview并看到它的detailsview时,我得到这个错误。终止应用程序由于未捕获的异常'NSInvalidArgumentException',原因:'Receiver()没有与标识符'lmDetails''''控制器没有标识符错误的segue

我有两个tabbars expect发生,如果我调用包含uitableview的tabbar 2,这将打开uitableview 1如果点击一个按钮。从uitableview 1到其详细信息视图时显示错误。在UITableView的2我打电话uitableview1露面使用以下SEGUE:

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 
{ 
    if ([segue.identifier isEqualToString: @"seguelmResults"]) { 
     LMResultsTableViewController *cvc = (LMResultsTableViewController *)[segue destinationViewController]; 
     NSIndexPath *indexPath = sender; 
     HolidayChartListItem *obj=[[HolidayChartListItem alloc]init]; 
     obj= [totalArray objectAtIndex:indexPath.row]; 
     cvc.selDestinationId = obj.DestinationId; 
     cvc.selCountryId = obj.CountryId; 
} 

如果我从1的TabBar开拓的UITableView 1 - 而不是从UITableView的2再就是要详细信息页面时都没有错误。

+0

标识符'lmDetails''未在您提供的示例中列出。你确定它存在或者是一个错字吗?这听起来像你设置的segue是lmDetails,而不是你提供的例子中的seguelmResults。 – 2013-05-07 16:19:20

+0

像错误状态一样* Receiver()没有标识符'lmDetails'*。检查你的故事板segues标识符。 – danypata 2013-05-07 16:20:52

回答

0

听起来像你设置的segue是“lmDetails”而不是“seguelmResults”,就像你提供的例子。

+0

好吧,我先让用户在转到详细信息页面之前转到名为“seguelmResults”的uitableview,这是错误发生的地方。所以结构是 - > uitableview - > uitableview - >细节 – 2013-05-07 17:26:11

+0

当你说称为“segueImResults”的uitableview引用了segue时,是正确的吗?你对你的布局的解释很混乱。你有2个UITabBars吗?或者你有2个UITabBar? – 2013-05-07 18:17:53