Digital Compass and iOS
Posted: Mon May 02, 2011 7:29 am
Has anyone been able to get the iPhone compass working in LiveCode?
I've tried the "How do I get the Location and use the Digital Compass in iOS?" lesson example and none of the compass-related functionalities work for me:
I can start "Location Tracking" and get my current location in the simulator and on my iPhone 4, even though "iphoneCanTrackLocation ()" and "iphoneStartTrackingLocation" produces an error when not running on the simulator or a real iPhone 4.
However, the heading tracking doesn't work; "iphoneStartTrackingHeading", "iphoneCanTrackHeading ()" and "iphoneCurrentHeading()" all produce errors and don't work on the iOS simulator or an actual iPhone 4.
My environment:
LiveCode 4.5.3 (also tested on colleague's LiveCode 4.6.1, iphoneCanTrackHeading () returns false)
XCode version 4.0.2
iOS Simulator version: 4.3
iPhone 4 OS: 4.3.2
Does anyone have any idea what I might be doing wrong or any suggestions on how to access compass data using LiveCode?
Thanks,
Gordon.
I've tried the "How do I get the Location and use the Digital Compass in iOS?" lesson example and none of the compass-related functionalities work for me:
I can start "Location Tracking" and get my current location in the simulator and on my iPhone 4, even though "iphoneCanTrackLocation ()" and "iphoneStartTrackingLocation" produces an error when not running on the simulator or a real iPhone 4.
However, the heading tracking doesn't work; "iphoneStartTrackingHeading", "iphoneCanTrackHeading ()" and "iphoneCurrentHeading()" all produce errors and don't work on the iOS simulator or an actual iPhone 4.
My environment:
LiveCode 4.5.3 (also tested on colleague's LiveCode 4.6.1, iphoneCanTrackHeading () returns false)
XCode version 4.0.2
iOS Simulator version: 4.3
iPhone 4 OS: 4.3.2
Does anyone have any idea what I might be doing wrong or any suggestions on how to access compass data using LiveCode?
Thanks,
Gordon.