How to add an UIView on top of google map in iOS -


i trying place view on top of gmsmapview, when map dragged, view not move. tried use 'addsubview' , 'insertsubview', view did not show on top. know do? thanks!

try this:

[[[[uiapplication sharedapplication] delegate] window] addsubview:yourview]; yourview.layer.zposition = mapview.layer.zposition + 1; 

you may not have add view window, add map.superview , try adjusting zposition value above or maybe 1000 or something.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -