startMonitoringForRegion not always adding regions to monitoredRegions

[亡魂溺海] 提交于 2019-12-06 06:02:35

In the Location Awareness Programming Guide

You should always be judicious when specifying the set of regions to monitor. Regions are a shared system resource and the total number of regions available systemwide is limited. For this reason, Core Location limits the number of regions that may be simultaneously monitored by a single application.

are you using iPhone4 feature only works on that device, check with

 [CLLocationManager regionMonitoringAvailable] 

This appears to be a database error or something analogous. For some period of time after the region is registered, the table is locked (or, again, whatever the equivalent is behind the scenes, though I'm guessing it's exactly that). Therefore you can't do a count. Try counting after a longer period.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!