Issue
App have a mapView and a button which shows current location. when I press button, before loading map like http://i.stack.imgur.com/eFAnc.png, app is killed.
Killed point is as below.
[mapView setRegion:region animated: TRUE];
[mapView regionThatFits:region];
If I detect map is loaded, I can handle it.
Solution
The MKMapViewDelegate calls "- (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView" when the map has loaded.
Answered By - esthepiking
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.