MKMapViewZoom icon indicating copy to clipboard operation
MKMapViewZoom copied to clipboard

Zooming out entire world map - doesn't work on iphone, crashes on iPad

Open vividcode opened this issue 11 years ago • 0 comments

I am trying to zoom out till the point when I can see entire world map.

When using with iPad (retina or non-retina), following line crashes:

[map setCenterCoordinate:CLLocationCoordinate2DMake(0, 0) zoomLevel:0 animated:0];

The crash log: (observed in simulator, all iOS versions)

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid Region <center:+0.00000000, +0.00000000 span:+177.49461591, +624.37500000>'

This works without crash on any iphone, but entire world isn't visible anyhow.

vividcode avatar Nov 16 '13 19:11 vividcode