【问题标题】:What's the maximum number of regions that can be monitored on iPhone?iPhone 上最多可以监控多少个区域?
【发布时间】:2010-07-30 04:04:14
【问题描述】:

【问题讨论】:

    标签: iphone core-location


    【解决方案1】:

    我无法让它接受超过 10 个区域。没有错误信息刚被监控Regions 10 后没有得到任何成员。

    编辑:如果我添加很多(大约 60 个)区域,有时它会崩溃。没有错误信息。这会产生错误的访问

    [locationManager startMonitoringForRegion:clr desiredAccuracy:500.0];
    

    编辑:在 5 个地区,我得到了相当可靠的结果

    【讨论】:

    • 谢谢,我得到了大约 10 个,其他时候会更少。我觉得这个 API 还没有准备好迎接黄金时段。调试时,有时我也会在日志中收到一些奇怪的“无法复制”类型的消息,但是我的受监控区域计数将为 0。嗯。
    • 感谢您的评论,我遇到了同样的问题。 stackoverflow.com/questions/4029293/…
    【解决方案2】:

    我也有同样的经历。以下是一些提示:

    1. 每次都需要在delegate中查看@selector(locationManager:monitoringDidFailForRegion:withError:)
    2. 保持半径小于maximumRegionMonitoringDistance

    【讨论】:

      猜你喜欢
      • 2012-02-02
      • 2017-12-10
      • 1970-01-01
      • 1970-01-01
      • 2013-06-07
      • 1970-01-01
      • 1970-01-01
      • 2011-02-10
      • 2016-06-17
      相关资源
      最近更新 更多