views:

81

answers:

1

Anyone know of an easy way to implement boundaries on an MKMapView. For example, I want to tell the map it can only stay in one area. I want to user to be able to scroll but have them stop when they get to a certain latitude/longitude. I tried using the willChangeRegion: delegate but that screwed me over. Thanks.

A: 

So I am going to go ahead and answer my own question and say no there is no EASY way to implement this behavior. Not only do you have to check the boundaries, but you also have to check the direction of the scrolling, and the console keeps telling me: last touch after scroll but scrollViewDidEndDragging:willDecelerate: wasn't called! I guess I have so more research to do...

Jake Schwartz