I am trying to use the Google Maps SDK for iOS in the view of the main view that I created in the storyboard, and is connected to the view controller via IBOutlet (I called it extraView, subclassed from UIView). When I follow the instructions in the SDK getting started guide, the SDK works fine, but it uses the topmost view in the hierarchy (main view), which I don't want. I want my map to be in the smaller part of the screen and use the rest of the screen for something else. When I try to assign the mapView_ object (see the Getting Started Guide) to self.extraView instead of self.view, the whole screen is black and I get an error message on the console output:
"Application windows are expected to have a root view controller at the end of the application launch."
Has anyone else figured this out? I cannot find anything in the documentation, and the sample code that Google provides does not use a storyboard.
source
share