Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 632 Bytes
Modified Apple sample code, taken from https://developer.apple.com/library/ios/#samplecode/KMLViewer/Introduction/Intro.html
Changes include:
- ARC
- Adding a static library build target
- Not have all functionality in one giant file that is hard to read
Usage:
1. Add libKMLViewer as a build dependency (Also link against MapKit and CoreLocation, if you arent' doing so already.)
2. #import "KMLParser.h" (and nothing else)
3. Make a KMLParser object, using -initWithURL:
4. Call -parseKML
5. Get overlays and points from relevant properties
Dependencies:
- CoreLocation, MapKit and UIKit. Nothing that doesn't ship with the OS.