开发者

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

开发者 https://www.devze.com 2023-03-28 16:59 出处:网络
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 ignore

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

精彩评论

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