Permalink
Browse files

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

  • Loading branch information...
1 parent 4c43150 commit 90407b38996a1f410727c038abbec3c6693e416e @incanus incanus committed Feb 4, 2013
Showing with 12 additions and 0 deletions.
  1. +9 −0 MapView/Map/RMMapView.m
  2. +3 −0 MapView/Map/RMMarker.m
View
9 MapView/Map/RMMapView.m
@@ -3103,7 +3103,10 @@ - (void)setUserTrackingMode:(RMUserTrackingMode)mode animated:(BOOL)animated
[_locationManager stopUpdatingHeading];
if (self.userLocation)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[self locationManager:_locationManager didUpdateToLocation:self.userLocation.location fromLocation:self.userLocation.location];
+#pragma clang diagnostic pop
if (_userLocationTrackingView || _userHeadingTrackingView || _userHaloTrackingView)
{
@@ -3192,7 +3195,10 @@ - (void)setUserTrackingMode:(RMUserTrackingMode)mode animated:(BOOL)animated
[self zoomByFactor:exp2f(3 - [self zoom]) near:self.center animated:YES];
if (self.userLocation)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[self locationManager:_locationManager didUpdateToLocation:self.userLocation.location fromLocation:self.userLocation.location];
+#pragma clang diagnostic pop
[self updateHeadingForDeviceOrientation];
@@ -3515,7 +3521,10 @@ - (void)showAttribution:(id)sender
attributionViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[_viewControllerPresentingAttribution presentModalViewController:attributionViewController animated:YES];
+#pragma clang diagnostic pop
}
}
View
3 MapView/Map/RMMarker.m
@@ -250,7 +250,10 @@ - (void)changeLabelUsingText:(NSString *)text position:(CGPoint)position font:(U
[aLabel setBackgroundColor:backgroundColor];
[aLabel setTextColor:textColor];
[aLabel setFont:font];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[aLabel setTextAlignment:UITextAlignmentCenter];
+#pragma clang diagnostic pop
[aLabel setText:text];
[self setLabel:aLabel];

0 comments on commit 90407b3

Please sign in to comment.