Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone MapView limiting to state of Missouri only

I am making an iPhone app that is designed for things that will be local to only Missouri. So my idea is to limit the map to only Missouri/regions close to Missouri. I have the map working fine, displaying the user's location, and if they update location then the pin will also move. Can I use something like a Custom Annotation to do this? Or can I check the users location and decide if its withing a certain lat, long and display the map based on that?

I am working in xCode while making this project.

like image 572
Matt Avatar asked Oct 17 '10 00:10

Matt


1 Answers

Take a look at the MKMapViewDelegate protocol. There are methods there that will inform you when the user's location has changed and when the map has been moved. You can then do what is appropriate depending on where the user is.

like image 156
lyonanderson Avatar answered Sep 20 '22 13:09

lyonanderson