【发布时间】:2015-09-14 10:28:14
【问题描述】:
我尝试在 Swift 中将位置管理器的 pausesLocationUpdatesAutomatically 设置为 true,但似乎没有结果。
另外,根据documentation:
该属性的默认值为true。
然而,现实中的默认值似乎是假的,而且似乎没有办法将其设置为真:
let manager = CLLocationManager()
println(manager.pausesLocationUpdatesAutomatically) // prints false
manager.pausesLocationUpdatesAutomatically = true
println(manager.pausesLocationUpdatesAutomatically) // prints false
如何将此属性设置为true?
【问题讨论】:
标签: ios swift core-location cllocationmanager