Group Group Group Group Group Group Group Group Group

raywenderlich.com Forums

Core Location Tutorial: Geofencing

In this tutorial, you’ll learn how to use geofencing in iOS with Swift – using the Region Monitoring API in Core Location.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1896-core-location-tutorial-geofencing

Any plans to update for iOS9 and Swift 2.0? I have tried updating myself, but OnEntry and OnExit events never seem to fire, even when using the completed example.

Thanks!
Tony

Question:
This tutorial is very useful.But i have a question.I dont want to use mapview, instead of that.I need to simply check if my device is moving from current place (Particular area) to out.After researching i got this type of code.

        self.locationManager.distanceFilter = 15

But i confess i did not have any idea to how to implement.

Any helps really welcome

What is this returns let interval = newLocation?.timestamp.timeIntervalSinceNow?