Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Not entirely sure why it wouldn't receive your callbacks. I'll cover a few things I'm noticing and you can see if they help.</p> <ol> <li>You are not setting the <code>desiredAccuracy</code> or <code>distanceFilter</code> in your location manager. They should default to something, but if your locations in the GPX aren't within the accuracy of the regions, it could just be not getting close enough to trigger.</li> <li>The method you are using to start monitoring has been deprecated in iOS 6. You can add the accuracy to the location manager and leave that off your call.</li> <li>It would be helpful to see how you are creating your <code>CLRegion</code> to monitor, <code>regionToMonitor</code>. If it is being created ok as soon as you start monitoring, you should see the hollow purple location arrow show up. You should also receive the delegate call <code>-didStartMonitoringForRegion</code>. If neither of these are showing up, then you probably just have an issue with your location manager setup.</li> <li>One suggestion would be to create your own location manager class and turn it into a singleton. This will prevent you from accidentally initializing multiple delegates and getting multiple calls. It also gives you one clean class to contain all your callback methods.</li> </ol> <p>I don't see anything wrong with the code you've included, so I'm guessing the problem lies in the code you haven't included. Check to make sure your location manager code is being initialized and make sure your <code>CLRegion</code> is being created correctly. Hope this helps. I'll be happy to update my answer if you include more code and we find out what the true issue is.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload