Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fernandospr/fsrotatingcamera

Class helper that uses MKMapCamera to rotate around a coordinate
https://github.com/fernandospr/fsrotatingcamera

Last synced: about 2 months ago
JSON representation

Class helper that uses MKMapCamera to rotate around a coordinate

Awesome Lists containing this project

README

        

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](https://github.com/fernandospr/FSRotatingCamera/raw/master/images/FSRotatingCameraExampleDemo.gif)

## 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!