CLLocation help

9 views
Skip to first unread message

Oscar Franco

unread,
Oct 15, 2015, 1:34:33 PM10/15/15
to iPhone Wax
Hello, I'm trying to use wax to get device location using the following snippet:

local locationManager = CLLocationManager:new()

locationManager.delegate = self

locationManager.desiredAccuracy = kCLLocationAccuracyKilometer

locationManager.distanceFilter = 500 -- meters

locationManager:startUpdatingLocation()

function locationManager_didUpdateLocations(self, locationManager, locations)

print("updated locations")

end


but it doesn't seem to work, any ideas on how to make this work?

Reply all
Reply to author
Forward
0 new messages