开发者

ios Mapkit: Change from hybrid to map is ignored when testing on device

I am testing an iPhone app that include mapkit. I have changed the map view t开发者_如何学JAVAype from 'hybrid' to 'map'. It works fine in the simulator but when I test on device the iPhone ignores the change and shows me the 'hybrid' mapview.

If I try to profile on the device it works fine.

Any ideas.

Thanks.


Make sure you've properly connected the map view to a corresponding IBOutlet declared in your view controller.


Please check the below codes, I think you have not set the type of mapview properly, Here you can choose the map type which you want.

map.mapType = MKMapTypeStandard;

OR

map.mapType = MKMapTypeSatellite;

OR

map.mapType = MKMapTypeHybrid;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜