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
Post a Comment