Class helper that uses MKMapCamera to rotate around a coordinate.
Copy FSRotatingCamera folder to your project, include FSRotatingCamera.h and start using!
Steps:
- Instantiate the class
[[FSRotatingCamera alloc] initWithMapView:self.mapView];
- Call any of the startRotating methods.
- In your view controller implement the following MKMapViewDelegate method:
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated {
if ([self.rotCamera isStopped] == NO) {
[self.rotCamera continueRotating];
}
}
See example project for more details!