jjzjj

headingAvailable

全部标签

iphone - iOS模拟器和XCode来模拟Compass?

我知道现在有一种模拟位置的方法,但是有没有一种方法可以模拟罗盘值?。 最佳答案 Compass不在模拟器支持的硬件交互列表中,CLLocationManagerheadingAvailable报告它在模拟器上不可用。此外,在本文档中:http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.htmlSomelocatio