这是我的代码:
-(void)btnAction
{
mapController = [[MKMapController alloc] initWithNibName:@"MKMapController" bundle:nil];
mapController.delegate = self;
mapController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:mapController animated:YES];
[mapController release];
}
我收到崩溃消息:
-[MKMapController respondsToSelector:]: message sent to deallocated instance 0x79ccc90
盖伊,请帮我解决这个问题.. !!
感谢所有人, Monish。
答案 0 :(得分:0)
以dealloc方式释放mapController
。