iphone - Unlock zooming after scrolling in maps -


I have these two methods that I use to lock in the user's location in the map, and it's completely Works from ...

However, I think it works very well, whenever I move the map to look elsewhere on map map ... this user Bring back the spot to the present place.

So I think my question is, how can I disable lock on user location after the user scrolls in the map.

  - (zero) viewDidoadload {// here is more code that I did not post [self.mapView.userLocation addObserver: selfPayPath: @ "Location" option: (NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) Reference : NULL]; } - (Zero) Inspection Valuerge Path: (NSSTING *) The object of the pipe: (ID) Object changes: (NSDragment *) Convert Reference: (Zero *) Reference {if ([Self Map View Shows User Location]) {MK Cordinet area area; Region.center = self.mapView.userLocation.coordinate; MKCoordinateSpan period; Span.latitudeDelta = 1; // Change these values ​​to change the zoom span. Verticality = 1; Region.span = span; [Self-map set set: Animated area: Yes]; }}    

OK, so I think I understood it ... The way I am currently up to it seems difficult way ... in iOS 5 they allow the use of this method to use and it worked like a charm

  [mapView setUserTrackingMode: MKUserTrackingModeFollow Animated: Yes];    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -