开发者

Making the MKMapView transparent but keeping overlays opaque

开发者 https://www.devze.com 2023-02-08 09:26 出处:网络
Is there a way to make the map somewhat transparent but keep all the added overlays opaque? Adjusting the alpha for the map will of course set it for th开发者_高级运维e overlays as well.You would have

Is there a way to make the map somewhat transparent but keep all the added overlays opaque? Adjusting the alpha for the map will of course set it for th开发者_高级运维e overlays as well.


You would have to fiddle around with MKMapView's subviews which is possible but completely undocumented and not recommended by Apple. Basically you'd need to find the subview with the actual map and set its alpha. No guarantee it'll actually work!

0

精彩评论

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