i have a navigation-based app.
the first view is a tableView, when i press the third cell i’ll get navigated into a MapViewController
else if (2 == indexPath.row)
{ MapViewController *maps = [[MapViewController alloc] initWithNibName:@"MapViewController" bundle:nil];
maps.title=@"Maps";
[self.navigationController pushViewController:maps animated:YES];
[maps release];
}
what’s wrong with this code? i’m getting an error !
You need to add the
MapKit.frameworkto your Xcode project.Xcode 4
MapKit.framework