From 8a9567e072e09a2f5a6da95a2a2ce56b2f05a79b Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Tue, 18 Jun 2019 12:13:43 -0700 Subject: [ios, macos] Deprecate methods in favor of new completion handler versions --- .../Annotation Tests/MGLAnnotationViewIntegrationTests.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/ios/Integration Tests') 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); -- cgit v1.2.1