定不了位啊
- (void)initMapView
{
[MAMapServices sharedServices].apiKey = APIKey;
_mapView = [[MAMapView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds))];
_mapView.delegate = self;
_mapView.compassOrigin = CGPointMake(_mapView.compassOrigin.x, 22);
_mapView.scaleOrigin = CGPointMake(_mapView.scaleOrigin.x, 22);
[self.view addSubview:_mapView];
_mapView.showsUserLocation = YES;
}
为什么我定不了位啊??
求解