首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iphone:重大位置更新未找到

iphone:重大位置更新未找到
EN

Stack Overflow用户
提问于 2011-09-16 13:34:04
回答 1查看 111关注 0票数 0

我正在使用一个重要的位置,但显示更新后,一个很长的distance.any线索,请分享。

didfinishlaunching中,我开始进行重大更改,然后从locationmanagerdidupdatelocation委托方法进行存储;

代码语言:javascript
复制
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;
EN

回答 1

Stack Overflow用户

发布于 2012-01-03 12:43:18

我不确定你的问题是什么,但我会告诉你一点关于startMonitoringSignificantLocationChanges的信息

当你使用startMonitoringSignificantLocationChanges时,你只会在切换手机发射塔时得到回调。因此,要测试它是否正常工作,您需要开车转一圈,或者使用调试器提供的位置更改功能。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7440531

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档