Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fernandospr/fsrotatingcamera
- Owner: fernandospr
- License: mit
- Created: 2013-12-27T19:52:13.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-15T23:36:13.000Z (over 10 years ago)
- Last Synced: 2024-04-16T11:03:03.309Z (9 months ago)
- Language: Objective-C
- Homepage:
- Size: 6.54 MB
- Stars: 52
- Watchers: 9
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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!