Page 1 of 1
Current Location
Posted: Mon Feb 08, 2016 6:43 am
by snop21
Hi Guyz,
How can I Get my current location using iOS I am using livecode 8 Community Edition.
Any help is appreciated.
Thank You.
-Ken
Re: Current Location
Posted: Mon Feb 08, 2016 6:58 am
by Simon
Probably not use LC 8 and check out the lesson;
http://lessons.livecode.com/m/4069/l/30 ... al-compass
liveCode 7.1 I think is the latest stable version.
Simon
Re: Current Location
Posted: Mon Feb 08, 2016 7:22 am
by snop21
Thanks for the reply Simon.
There's an Error when I Run the sample stack that you have shared it to me.
Is there any another way to get my current location?.
Thanks

)
Re: Current Location
Posted: Mon Feb 08, 2016 8:55 am
by Dixie
Just tested under LC8 (DP14)... works fine, in the sim and on device..
Code: Select all
on openStack
if environment() = "mobile" then
mobileStartTrackingSensor "location", true
end if
end openStack
on locationChanged latitude, longitude
set the theCurrentLocation of this stack to latitude & comma & longitude
put latitude & comma & longitude into fld 1
end locationChanged
Re: Current Location
Posted: Wed Feb 10, 2016 4:13 pm
by snop21
Hi Dixie..
Thank you..

)