我试图在Swift中将位置管理器的pausesLocationUpdatesAutomatically设置为true,但似乎没有效果。
此外,根据文档:
默认值为true。
然而,实际上默认值似乎为false,并且似乎没有办法将其设置为true:
如何将此属性设置为true?
此外,根据文档:
默认值为true。
然而,实际上默认值似乎为false,并且似乎没有办法将其设置为true:
let manager = CLLocationManager()
println(manager.pausesLocationUpdatesAutomatically) // prints false
manager.pausesLocationUpdatesAutomatically = true
println(manager.pausesLocationUpdatesAutomatically) // prints false
如何将此属性设置为true?