【发布时间】:2018-10-09 10:21:36
【问题描述】:
众所周知,Core Location 框架使用 iPhone 板载硬件中的所有可用硬件,包括加速度计、磁力计、陀螺仪、气压计、GPS 和用于 iBeacon 的蓝牙。
// Here are CL classes that use iPhone's hardware
var coordinate: CLLocationCoordinate2D { get }
var altitude: CLLocationDistance { get }
var horizontalAccuracy: CLLocationAccuracy { get }
var speed: CLLocationSpeed { get }
是否可以通过 Swift 以编程方式打开/关闭这些硬件模块?
【问题讨论】:
-
据我所知,不可能直接控制各个模块。
标签: iphone swift core-location