我在我的应用程序中使用MKMapView
,并使用mapView.scrollEnabled=NO;
,但它不起作用。这里是我的代码:如何停止在mkmapview中滚动?
mapView=[[MKMapView alloc] initWithFrame:CGRectMake(20, 100, 282, 209)];
mapView.delegate=self;
mapView.scrollEnabled=NO;
[self.view addSubview:mapView];
我的代码有什么问题吗?
我都试过了,但简化版,工作。 – San 2013-02-21 14:29:49
@San它在我的测试项目中工作。 – 2013-02-21 14:35:12