To add geofencing, perform the following steps:
- Open storyboard, drag a UIBarButtonItem and add it to the right of the Locate Me button. Change its type to the Add type:
- Add a new View Controller for adding geofencing to the map. Link a Show segue from the new plus button to the new view controller.
- Add a MKMapView so that the user can use it to pick a location and make it at the bottom with half of the screen.
- Add a UISegmentedControl at the top of the view with two segments. The first segment will be called Upon Entry and the second one Upon Exit. This will help the user to choose the type of geofencing.
- Below the segmented ...