开发者

Corelocation automatically drops pin when Current Location is found

I am开发者_开发问答 making a map view with CoreLocation. the problem I'm facing right now is that whenever I found a location. It sometimes pops back to my current Location. i haven't tested this bug thoroughly but is it possible to turn this off? so I can add the pin myself?

Thanks in advance


If you are adding mapview via XIB then in the map view properties panel uncheck the

Shows User Location

or if you are adding it programmatically then do

[mapView setShowsUserLocation:NO];

But then you have to find the location yourself and then add the pin.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜