2
votes
Getting GPS coordinates and compass heading in an iOS FireMonkey app
The Hacker's Corner
– Below is a code snippet that shows how to write the delegates that get GPS and Compass heading information from the device. Don’t worry - cleaned up complete examples are forthcoming shortly. {$IFDEF FPC} type MyCLController = objcclass(NSObject) locationManager : CLLocationManager; procedure locationManager_didUpdateToLocation_fromLocation(manager: CLLocationManager; newLocation, oldLocation: CLLocation); message ‘locationManager:didUpdateToLocation:fromLocation:’; procedure locationManager_didUpdateHeading(manager: CLLocationManager; newHeading: CLHeading); message ...
Statistics
|
Visits by Source |
User Actions |




