0
我需要使用GPS无需互联网并在Google地图上显示我的当前位置。iPad - 使用CLLocationManager发布
在iPhone
一切ok,并显示位置。
在iPad上
我使用CLLocationManager
作为delegate
。然而,它返回我下面的错误上方法didFailWithError:(NSError *)error
:
错误域= kCLErrorDomain代码= 0 “的操作无法完成(kCLErrorDomain错误0)”。
创作CLLocationManager代码:
locationManager = [[CLLocationManager alloc]init];
locationManager.delegate = self;
locationManager.distanceFilter = kCLDistanceFilterNone;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startUpdatingLocation];
PS:我需要找到没有任何互联网连接的当前位置。 iPad显示指示器本地化状态栏。 (与互联网连接都可以,并显示位置)。 iPad是iOS 7.1的第四代产品。
我真的不知道这一点。非常感谢。 – Gian 2014-09-24 18:23:04
这完全没有帮助。我有一台连接到WiFi的iPad,而且我始终都会遇到这些错误。所以这个答案是不正确的。 – CommaToast 2015-05-17 00:59:35