Câu hỏi được gắn thẻ «cllocation»

19
didFailWithError: Error Domain = kCLErrorDomain Code = 0 “Không thể hoàn thành thao tác. (kCLErrorDomain error 0.) ”
Tôi muốn lấy vị trí hiện tại nhưng lại gặp lỗi. Đây là một đoạn mã của bộ điều khiển chế độ xem của tôi. - (void)viewDidLoad { self.locationManager = [[CLLocationManager alloc] init]; [locationManager setDelegate:self]; [locationManager setDesiredAccuracy:kCLLocationAccuracyNearestTenMeters]; [locationManager startUpdatingLocation]; } - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations { // I would …

Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookie và Chính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.