iPhone Application
Posted
by
user553627
on Stack Overflow
See other posts from Stack Overflow
or by user553627
Published on 2010-12-25T00:44:25Z
Indexed on
2010/12/25
0:54 UTC
Read the original article
Hit count: 95
Hello,
Im working on an iPhone project using xcode and i actually have not programmed using objective-c before. So, my problem mainly is that my app crashes whenever i hit the button that it suppose to show a view of the world map. I think the problem is within the last 2 lines of the code but still i cant figure out why ?!! because whenever i comment out the line "[self presemtM.....]" the program doesn't crash. Would appreciate your help!
-(IBAction) pushedGo:(id)sender { CLLocationCoordinate2D coord = {37.331689, -122.030731};
MapViewController *mapView = [[MapViewController alloc] initWithCoordinates:coord andTitle:@"Apple" andSubTitle:@"111"];
[self presentModalViewController:mapView animated:YES]
[mapView release];
}
© Stack Overflow or respective owner