diff options
author | Jason Wray <jason@mapbox.com> | 2019-06-18 12:13:43 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2019-06-21 17:48:54 -0700 |
commit | 45b990dd92d62d6585cea3554c05b357693b9c99 (patch) | |
tree | cf2a9b0bec1705d0df216384964e4b2da3486e8a /platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.m | |
parent | f7f74a6deb57ad4ac22a30604a0dce39024feca2 (diff) | |
download | qtlocation-mapboxgl-upstream/friedbunny-deprecates-uncompletionful-methods-5839.tar.gz |
[ios, macos] Deprecate methods in favor of new completion handler versionsupstream/friedbunny-deprecates-uncompletionful-methods-5839
Diffstat (limited to 'platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.m')
-rw-r--r-- | platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.m b/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.m index 8b5d94f6f3..162bfc5237 100644 --- a/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.m +++ b/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.m @@ -480,12 +480,12 @@ static const CGPoint kAnnotationRelativeScale = { 0.05f, 0.125f }; MGLTestLocationManager *locationManager = [[MGLTestLocationManager alloc] init]; self.mapView.locationManager = locationManager; - [self.mapView setUserTrackingMode:MGLUserTrackingModeFollow animated:NO]; + [self.mapView setUserTrackingMode:MGLUserTrackingModeFollow animated:NO completionHandler:nil]; CGRect originalFrame = [self.mapView viewForAnnotation:self.mapView.userLocation].frame; // Temporarily disable location tracking so we can save the value of // the originalFrame in memory - [self.mapView setUserTrackingMode:MGLUserTrackingModeNone animated:NO]; + [self.mapView setUserTrackingMode:MGLUserTrackingModeNone animated:NO completionHandler:nil]; CGPoint offset = CGPointMake(20, 20); @@ -493,7 +493,7 @@ static const CGPoint kAnnotationRelativeScale = { 0.05f, 0.125f }; return offset;; }; - [self.mapView setUserTrackingMode:MGLUserTrackingModeFollow animated:NO]; + [self.mapView setUserTrackingMode:MGLUserTrackingModeFollow animated:NO completionHandler:nil]; CGRect offsetFrame = [self.mapView viewForAnnotation:self.mapView.userLocation].frame; XCTAssertEqual(originalFrame.origin.x + offset.x, offsetFrame.origin.x); |