Я занимаюсь некоторыми исследованиями в области CoreLocation. Недавно я столкнулся с проблемой, которая была рассмотрена в другом месте, но в Objective C и для iOS 8.
Я чувствую себя глупо, спрашивая об этом, но как вы можете проверить, включены ли службы определения местоположения с помощью swift, на iOS 9?
В iOS 7 (и, возможно, 8?) вы можете использовать locationServicesEnabled()
, но это не работает при компиляции для iOS 9.
Итак, как бы я это сделал?
Спасибо!