iPad - Problem with CLLocationManager & CLLocation property "course"
I'm using CLLocationManager & CLLocation to get latitude and longitude of the location where iPad is. Its working fine. But when i'm trying to get the property "course" its a开发者_StackOverflow社区lways returning "-1" What should I do to get the "course" property so that I can identify which direction is my iPad pointing to?
Get up and start running, the gps needs to get several different values to determine a course/speed. I had to run with my iphone to get a value other than -1
What are you testing this on? Actual Hardware? I think this is expected when using the simulator. From the docs, a negative value indicates an "invalid" measurement, but that's all it says.
精彩评论