ios - GMSMapView compass button not visible -
i using google maps ask ios app using swift. have added map(gmsmapview) in story board , trying compass button
mapview.settings.compassbutton = true
but unable see compass button.
if navigation bar visible, compass button behind it. make appear below navigation bar need add padding top side of map view.
objective-c
uiedgeinsets mapinsets = uiedgeinsetsmake(80.0, 0.0, 0.0, 0.0); gmsmapview *mapview; mapview.padding = mapinsets;
swift
let mapinsets = uiedgeinsets(top: 80.0, left: 0.0, bottom: 0.0, right: 0.0) mapview.padding = mapinsets
Comments
Post a Comment