San*_*San 2 iphone objective-c mkmapview ios
我MKMapView在我的应用程序和使用中使用了一个mapView.scrollEnabled=NO;但它不起作用.这是我的代码:
mapView=[[MKMapView alloc] initWithFrame:CGRectMake(20, 100, 282, 209)];
mapView.delegate=self;
mapView.scrollEnabled=NO;
[self.view addSubview:mapView];
Run Code Online (Sandbox Code Playgroud)
我的代码有问题吗?
Ind*_*ore 12
您已经使用YES而不是NO代码.请使用NO如下.
mapView.scrollEnabled = NO;
Run Code Online (Sandbox Code Playgroud)