diff options
author | Jason Wray <jason@mapbox.com> | 2019-06-18 12:13:43 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2019-06-26 12:18:22 -0700 |
commit | 8a9567e072e09a2f5a6da95a2a2ce56b2f05a79b (patch) | |
tree | 628295b3f2e1db11f39c0f688a6c65fb16828374 /platform/ios/app/MBXViewController.m | |
parent | a16c67d953926bd9b86359316b983d01825fd0f2 (diff) | |
download | qtlocation-mapboxgl-8a9567e072e09a2f5a6da95a2a2ce56b2f05a79b.tar.gz |
[ios, macos] Deprecate methods in favor of new completion handler versions
Diffstat (limited to 'platform/ios/app/MBXViewController.m')
-rw-r--r-- | platform/ios/app/MBXViewController.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index 44b8ae2bac..2fb95e1b17 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -751,14 +751,14 @@ CLLocationCoordinate2D randomWorldCoordinate() { heading:0]; __weak typeof(self) weakSelf = self; [self.mapView setCamera:camera withDuration:0.3 animationTimingFunction:nil completionHandler:^{ - [weakSelf.mapView setContentInset:contentInsets animated:YES]; + [weakSelf.mapView setContentInset:contentInsets animated:YES completionHandler:nil]; }]; } else { [self.view sendSubviewToBack:self.contentInsetsOverlays[0]]; [self.view sendSubviewToBack:self.contentInsetsOverlays[1]]; [self.view sendSubviewToBack:self.contentInsetsOverlays[2]]; [self.view sendSubviewToBack:self.contentInsetsOverlays[3]]; - [self.mapView setContentInset:_originalContentInsets animated:YES]; + [self.mapView setContentInset:_originalContentInsets animated:YES completionHandler:nil]; } break; } @@ -1686,7 +1686,7 @@ CLLocationCoordinate2D randomWorldCoordinate() { - (void)selectAnOffscreenPointAnnotation { id<MGLAnnotation> annotation = [self randomOffscreenPointAnnotation]; if (annotation) { - [self.mapView selectAnnotation:annotation animated:YES]; + [self.mapView selectAnnotation:annotation animated:YES completionHandler:nil]; NSAssert(self.mapView.selectedAnnotations.firstObject, @"The annotation was not selected"); } @@ -1946,7 +1946,7 @@ CLLocationCoordinate2D randomWorldCoordinate() { // positioning rect) [self.mapView addAnnotation:pin]; - [self.mapView selectAnnotation:pin animated:YES]; + [self.mapView selectAnnotation:pin animated:YES completionHandler:nil]; } } |