Skip to content

fernandospr/FSRotatingCamera

Repository files navigation

Click here to lend your support to: Fernando's Open Source Projects and make a donation at pledgie.com !

FSRotatingCamera

Class helper that uses MKMapCamera to rotate around a coordinate.

Demo

Usage

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!

About

Class helper that uses MKMapCamera to rotate around a coordinate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages