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:
view1 transparent - view2 contentwindow, view3 triangle shape. 3 should "own" popover.
as rounded triangle shape have same standard uipopover has. that:
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):
you can mask custom view used infowindow. refer how mask uiview on how mask uiview image.
Comments
Post a Comment