我有一个的MKMapView被描述为一个正方形叠加:的MKMapView - 限制地图滚动正方形叠加
CLLocationCoordinate2D coordsBg[5]={
CLLocationCoordinate2DMake(31.750865,35.180882),
CLLocationCoordinate2DMake(31.740331,35.180882),
CLLocationCoordinate2DMake(31.740331,35.165452),
CLLocationCoordinate2DMake(31.750865,35.165452),
CLLocationCoordinate2DMake(31.750865,35.180882)
};
MKPolygon *bg=[MKPolygon polygonWithCoordinates:coordsBg count:5];
[map addOverlay:bg];
我想从滚动覆盖的外限制用户。
我可以限制MKMapView的滚动视图吗?或者还有其他方法?
感谢
沙尼
尝试这样的回答:http://stackoverflow.com/questions/4119117/restrict-mkmapview-scrolling – Anna