0
我想在使用CCLocationManager时模拟失败。我今天使用的代码就是这样的。使用CCLocationManager模拟失败
首先启动位置更新thingy。
[locationManager startUpdatingLocation];
如果东西失败
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
{
[locationManager stopUpdatingLocation];
[[ActivityIndicator sharedInstance] hide];
}
然而,东西永远不会失败,似乎和我想从模拟的LocationManager一个真正的错误。问题的根源在于我有一些用户表示,由于ActivityIndicator阻碍,位置搜索从不会结束,导致出现块。
任何提示?