I'm using the Google Map SDK for iOS in a project, but when using the service by default it covers the entire screen. But I need space to add a few buttons on the screen.
How can I resize the map view?
Currently using the default code:
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:latitude
longitude:longitude
zoom:17];
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled = YES;
self.view = mapView_;
// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(latitude, longitude);
marker.title = nomeCliente;
marker.snippet = @"Detalhes";
marker.map = mapView_;
With this code it looks like this:
ButIneedyoutolooklikethis: