开发者

Draw line above Mapkit: Invalid Region error

开发者 https://www.devze.com 2022-12-21 22:50 出处:网络
I\'am trying to draw a line above mapkit. If I try to set the region my app crashes: *** Terminating app due to uncaught exception \'NSInvalidArgumentException\', reason: \'Invalid Region <center:

I'am trying to draw a line above mapkit. If I try to set the region my app crashes:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid Region <center:-106.01842850, +37.33390400 span:+0.01000000, +0.01000000>'

span waas set manually.

Why does mapkit says that this is an invalid 开发者_Go百科region?

thanks!

If you need more code just let me know...

Already solved: the routing source changed lat and long.


got the same problem.

what do you mean by "the routing source changed lat and long" ?

EDITED AND SOLVED : under sdk 3.1, latitudeDelta can't be left to 0 like on 3.0, so that's the reason the app is crashing.

0

精彩评论

暂无评论...
验证码 换一张
取 消