ios - Google Maps Custom Infowindow - Popover Shape? -


i style google maps infowindows - if create custom uiview here:

 func mapview(mapview: gmsmapview!, markerinfowindow marker: gmsmarker!) -> uiview! {      var infowindow = uiview(frame: cgrectmake(0,0,280,40))     infowindow.backgroundcolor = uicolor.lightgraycolor()     ... 

thats easy - have triangle shape on bottom, first though if creating view in view, here:

enter image description here

view1 transparent - view2 contentwindow, view3 triangle shape. 3 should "own" popover.

as rounded triangle shape have same standard uipopover has. that:

enter image description here .

should use image view3 - or possible subclass uipopoverview (for 3 views) - got triangle shape? or can draw such trangle shape core graphics?

that should solution (with rounded triangle shape @ bottom):

enter image description here

you can mask custom view used infowindow. refer how mask uiview on how mask uiview image.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -