I have created a UIView that I would like to put google maps in. However, when I add GMSMapview to my UIView, the bottom portion of the GMSMapview does not extend to fit the UIView. I can still see the gray part of my UIVIew.
Why is that?
- (void)viewDidLoad
{
// Create a GMSCameraPosition that tells the map to display the
// coordinate -33.86,151.20 at zoom level 6.
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868
longitude:151.2086
zoom:6];
GMSMapView *mapView = [GMSMapView mapWithFrame:self.googleMapView.bounds camera:camera];
[self.googleMapView addSubview:mapView];
}