b
Size: a a a
b
t
startLocmanager(){
locationManager.requestWhenInUseAuthorization()
if CLLocationManager.locationServicesEnabled() {
locationManager.requestWhenInUseAuthorization()
locationManager.delegate = self
locationManager.desiredAccuracy = kCLLocationAccuracyKilometer
locationManager.pausesLocationUpdatesAutomatically = false
locationManager.requestLocation()
}
} ViewController: CLLocationManagerDelegate {
func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
print(error)
}
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
if let lastlocation = locations.last {
let coordinate = lastlocation.coordinate
print(coordinate.latitude , coordinate.longitude)
}
}
}MR
F
MD
А
F
MD
КМ
SI

AK
AE
SI
SI

SI
AP
SI
b
transactionState == .purchased (Например 14 шт, если еще раз подпишусь то теперь будет 15 приходить и тд)S
transactionState == .purchased (Например 14 шт, если еще раз подпишусь то теперь будет 15 приходить и тд)b