Search code examples
iosobjective-cgoogle-places-apigmsplacepickergmsplace

UI Offset within GMSPlacePickerViewController


I have implemented a GMSPlacesClient and GMSPlacePickerViewController, and the setup functions fine. However, there appears to be a vertical offset within the UI that creates an aesthetic issue: in search, the first item in the table is cut off, and after returning to the map, there is a black space at the top of the view.

I am pushing the view using [self.navigationController pushViewController:animated:];

Cutoff item

Unwanted gap


Solution

  • Make sure the Translucent option is checked on your navigation bar inside navigation controller.

    I had the same problem and realize that the Translucent is not checked.

    Checking Translucent solved my problem.

    I'm pretty sure this can help.