【发布时间】:2016-12-25 14:01:21
【问题描述】:
watchOS模拟器如何模拟位置?
与请求一起使用
- (void) requestLocation {
locationManager = [CLLocationManager new];
locationManager.delegate = self;
[locationManager requestWhenInUseAuthorization];
[locationManager requestLocation];
}
我总是遇到错误:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
// Error here if no location can be found
}
错误是
NSError * domain: @"kCLErrorDomain" - code: 0 0x7a867970
【问题讨论】:
-
对不起,但它不起作用。此外,没有关于 watchOS 模拟器的信息。
标签: objective-c cllocationmanager watchos-2 watchos-simulator