Authored by Justin R. Miller

fixed #179: remove iOS 6 deprecations since 5 still supported

@@ -3103,7 +3103,10 @@ @@ -3103,7 +3103,10 @@
3103 [_locationManager stopUpdatingHeading]; 3103 [_locationManager stopUpdatingHeading];
3104 3104
3105 if (self.userLocation) 3105 if (self.userLocation)
  3106 +#pragma clang diagnostic push
  3107 +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
3106 [self locationManager:_locationManager didUpdateToLocation:self.userLocation.location fromLocation:self.userLocation.location]; 3108 [self locationManager:_locationManager didUpdateToLocation:self.userLocation.location fromLocation:self.userLocation.location];
  3109 +#pragma clang diagnostic pop
3107 3110
3108 if (_userLocationTrackingView || _userHeadingTrackingView || _userHaloTrackingView) 3111 if (_userLocationTrackingView || _userHeadingTrackingView || _userHaloTrackingView)
3109 { 3112 {
@@ -3192,7 +3195,10 @@ @@ -3192,7 +3195,10 @@
3192 [self zoomByFactor:exp2f(3 - [self zoom]) near:self.center animated:YES]; 3195 [self zoomByFactor:exp2f(3 - [self zoom]) near:self.center animated:YES];
3193 3196
3194 if (self.userLocation) 3197 if (self.userLocation)
  3198 +#pragma clang diagnostic push
  3199 +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
3195 [self locationManager:_locationManager didUpdateToLocation:self.userLocation.location fromLocation:self.userLocation.location]; 3200 [self locationManager:_locationManager didUpdateToLocation:self.userLocation.location fromLocation:self.userLocation.location];
  3201 +#pragma clang diagnostic pop
3196 3202
3197 [self updateHeadingForDeviceOrientation]; 3203 [self updateHeadingForDeviceOrientation];
3198 3204
@@ -3515,7 +3521,10 @@ @@ -3515,7 +3521,10 @@
3515 3521
3516 attributionViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl; 3522 attributionViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
3517 3523
  3524 +#pragma clang diagnostic push
  3525 +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
3518 [_viewControllerPresentingAttribution presentModalViewController:attributionViewController animated:YES]; 3526 [_viewControllerPresentingAttribution presentModalViewController:attributionViewController animated:YES];
  3527 +#pragma clang diagnostic pop
3519 } 3528 }
3520 } 3529 }
3521 3530
@@ -250,7 +250,10 @@ @@ -250,7 +250,10 @@
250 [aLabel setBackgroundColor:backgroundColor]; 250 [aLabel setBackgroundColor:backgroundColor];
251 [aLabel setTextColor:textColor]; 251 [aLabel setTextColor:textColor];
252 [aLabel setFont:font]; 252 [aLabel setFont:font];
  253 +#pragma clang diagnostic push
  254 +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
253 [aLabel setTextAlignment:UITextAlignmentCenter]; 255 [aLabel setTextAlignment:UITextAlignmentCenter];
  256 +#pragma clang diagnostic pop
254 [aLabel setText:text]; 257 [aLabel setText:text];
255 258
256 [self setLabel:aLabel]; 259 [self setLabel:aLabel];