0
我正在使用一個重要的位置,但顯示更新後長距離。任何線索請分享。iphone:重要的位置更新沒有找到
在didfinishlaunching
我開始重大變化,然後存儲從didupdatelocation
代表方法locationmanager
;
id locationValue = [launchOptions objectForKey:UIApplicationLaunchOptionsLocationKey];
if(locationValue)
{NSLog(@"location value is%@",locationValue);
// create a new manager and start checking for sig changes
m_locManager = [[CLLocationManager alloc] init]
m_locManager.delegate = self;
[m_locManager startMonitoringSignificantLocationChanges];
//[m_locManager startUpdatingLocation];
[self.window addSubview:tabBarController.view];
[self.window makeKeyAndVisible];
[self showSplash];
return YES;