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/Integration Tests | |
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/Integration Tests')
-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); |