0
두 개의 viewController가 있습니다. 두 테이블을 모두 사용하면 응용 프로그램이 작동하고 두 번째 viewController에 탐색 모음이 추가되어 첫 번째 반환 기회가 제공됩니다. viewController. 네비게이션 바가 작동하지만 이전에 완벽하게로드 된 두 번째 viewController를 원할 때이 오류가 발생합니다.NSInvalidArgumentException 'NSInvalidArgumentException'인스턴스를 추가 한 후 인식 할 수없는 선택기를 보냈습니다.
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[ChinaDatabaseTable descrizione]: unrecognized selector sent to
instance 0x8670140'
탐색 표시 줄이 방금 추가 되었습니까? 최초의 ViewController에서
가 :
문제는 탐색의 그것과 연결되지 않은-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
ChinaDatabaseMenu *currow =[self.mutableArray objectAtIndex:indexPath.row];
/* The second time it loads this line gives the error, after going in the
second viewController and then went back*/
//.....open the second viewController
if(UI_USER_INTERFACE_IDIOM()== UIUserInterfaceIdiomPhone){
ListViewController * list =[[ListViewController alloc]initWithNibName:@"ListViewController~iPhone" bundle:nil];
list.titoloList = currow.descrizione;
list.labelTitle.font = [UIFont fontWithName:@"Future" size:15];
[self.navigationController pushViewController:list animated:YES];
}else{
ListViewController * list =[[ListViewController alloc]initWithNibName:@"ListViewController~iPad" bundle:nil];
list.titoloList = currow.descrizione;
list.labelTitle.font = [UIFont fontWithName:@"Future" size:30];
[self.navigationController pushViewController:list animated:YES];
}
//.....
}