startMonitoringForRegion never calls didEnterRegion/didExitRegion

后端 未结 3 1300
Happy的楠姐
Happy的楠姐 2020-12-25 08:19

I try to get the iPhone4 to monitor regions and notify me by call didEnterRegion or didExitRegion. I can\'t get it to work. I was reading probably all related enries here, p

3条回答
  •  悲哀的现实
    2020-12-25 09:10

    There is a known bug with iOS 5.1 Simulator where the region monitoring delegate methods are not called. My experience with it is it will call the first method triggered (either in or out) but won't call any more after that. I have filed radars with Apple to this fact, but have been mostly ignored for the current iteration. They did respond asking if it was working in the iOS 6 beta, which it is. I don't expect them to fix it for 5.1 at all.

    You can download the 5.0 simulator which still works, or download the iOS 6 beta (if you are a paid dev) and test your location stuff there. Outside that, we would need to see some code showing if everything is set up correctly. I'm guessing if the region monitoring icon shows up, you are doing it right and are just victim of the simulator bug.

提交回复
热议问题