|
5#
楼主 |
发表于 2015-11-23 14:51:09
|
只看该作者
我改成单实例的后,进入第二个地图界面,返回,仍然会死机,死机log只一行了
Exception: EXC_BAD_ACCESS (code=1, address=0x129bc988))
我是再 AppDelegate中,添加了
mapView = [[MAMapView alloc] init];
mapView.visibleMapRect = MAMapRectMake(220880104, 101476980, 272496, 466656);
然后再其他界面需要用到map的地方,调用
AppDelegate *me = (AppDelegate *)[[UIApplication sharedApplication] delegate];
mapView = [me mapView];
这样用的。请帮忙看看,有什么问题吗? |
|