What's the maximum number of regions that can be monitored on iPhone?

ぐ巨炮叔叔 提交于 2019-12-04 16:31:33

I can't get it to accept more than 10 regions. No error message just monitoredRegions does not get any members after 10.

edit: if I add a lot (around 60) of regions sometimes it crashes. No error message. This produces a bad access

[locationManager startMonitoringForRegion:clr desiredAccuracy:500.0];

edit: at 5 regions I am getting pretty reliable results

Juguang

I have the same experience. Here are a few tips:

  1. You need to check @selector(locationManager:monitoringDidFailForRegion:withError:) in delegate at each time.
  2. Keep the radius smaller than maximumRegionMonitoringDistance.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!