当我在 iphone sdk 中使用 PresentModelView 时应用程序崩溃
这是我的代码:
-(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
请帮我解决这个问题..!!
感谢大家, 莫尼什.
Here is my code:
-(void)btnAction
{
mapController = [[MKMapController alloc] initWithNibName:@"MKMapController" bundle:nil];
mapController.delegate = self;
mapController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:mapController animated:YES];
[mapController release];
}
I am getting the crash message as:
-[MKMapController respondsToSelector:]: message sent to deallocated instance 0x79ccc90
Guy's please help me how to resolve this..!!
Thanks to all,
Monish.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 dealloc 方法中释放您的
mapController
。Release your
mapController
in dealloc method.