I am aware there is now a way to simulate location, but is there a way to simulate compass values?.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Compass is not in the list of the hardware interactions supported by the simulator and CLLocationManager headingAvailable reports it’s not available on the simulator.
Also, in this doc:
http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html
Specifically CLLocationManager has this class property to check if the compass is available:
If I run this under the simulator:
Outputs: