我的代码-(IBAction)zoomOut:(id)sender{
MKCoordinateRegion theRegion=mapView.region;
theRegion.span.longitudeDelta*=2.0;
theRegion.span.latitudeDelta*=2.0;
[mapView setRegion:theRegion animated:YES];
}
当缩小到最后一级时,程序就会自动退出.请问这是怎么回事
MKCoordinateRegion theRegion=mapView.region;
theRegion.span.longitudeDelta*=2.0;
theRegion.span.latitudeDelta*=2.0;
[mapView setRegion:theRegion animated:YES];
}
当缩小到最后一级时,程序就会自动退出.请问这是怎么回事
解决方案 »
- 关于autorelease的想法...
- 【新手求助】Iphone中如何操作读取并显示数据
- CCOrbitCamera 参数详解
- 急求make-toolchain文件
- 关于IOS FFMPEG显示视频的问题!!!!!!
- 请问这里如何解决Application tried to present modally an active controller
- 自定义cell上的控件关联的变量一直为nil,研究了好长时间,操作应该没有错误,求大神帮忙
- 大神谁能解释下UICollectionView的两种注册cell方式的不同??
- 关于ios出包 xcode6.4
- 关于身份证扫描
- cocos2d-x读写文件
- xcode如何扫描当前所有无线网络,并加入其中一个网络
theRegion.span.latitudeDelta*=2.0;你这个每次都乘以2, 估计是缩小到最小后,这个span边界值超过 mkview里面允许的最大值了。