【发布时间】:2017-04-10 05:25:00
【问题描述】:
我想在
https://github.com/ReactiveX/RxSwift/issues/413
中使用 CLLocationManager 和 RxSwift,但我发现 CLLocationManager 扩展名已移至 RxExample
(此处提到 https://github.com/ReactiveX/RxSwift/issues/900)。
我的问题是:如何使用该代码?当我导入 RxSwift 和 RxCocoa 时,我无法访问例如locationManager.rx.didUpdateLocations。我应该怎么做才能将CoreLocation 与RxSwift 一起使用?
我正在使用 Xcode 8、Swift 3。
提前感谢您的帮助!
更新
我发现建议现在我们必须从 RxExample 复制和粘贴 CLLocationManager 扩展名(该提交的 cmets 中的详细信息 here)。
【问题讨论】:
标签: ios swift3 cllocation rx-swift