0
當我行點擊導航到其他視圖它給我的崩潰我不能導航到(didSelectedRowAtIndexPath)另一種觀點
"Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<detailInfo 0x6b503d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key lblText.'
*** First throw call stack:
"
這是我的代碼:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
_vcontroler = [ urls objectAtIndex:indexPath.row];
if (!self.detailViewController)
{
self.detailViewController = [[[detailInfo alloc] initWithNibName:@"detailInfo" bundle:nil] autorelease];
}
detailViewController.vcontroler =_vcontroler;
[self.navigationController pushViewController:self.detailViewController animated:YES];
[detailViewController release];
}
我刪除它,但它仍然使crashTerminating應用程序由於未捕獲異常'NSInvalidArgumentException',原因:' - [__ NSCFString url]:無法識別的選擇發送到實例0x686d580' – 2012-07-22 10:57:59
您收到此異常? – azimov 2012-07-22 11:05:21
當我選擇行 – 2012-07-22 12:17:23