0
我有一個基於導航的應用程序。 第一種觀點是的tableView,當我按下第三單元我會導航到一個MapViewControllerMKMapView - iphone開發
else if (2 == indexPath.row)
{ MapViewController *maps = [[MapViewController alloc] initWithNibName:@"MapViewController" bundle:nil];
[email protected]"Maps";
[self.navigationController pushViewController:maps animated:YES];
[maps release];
}
什麼不對的代碼?我收到一個錯誤!
什麼錯誤? – Anna
該視圖未加載(未導航) –
2011-07-24 01:41:03.663 CafeYounes [11858:207] ***由於未捕獲異常'NSInvalidUnarchiveOperationException'導致應用終止,原因:'*** - [NSKeyedUnarchiver decodeObjectForKey :]:無法解碼類的對象(MKMapView)' ***一次調用堆棧: –