How to set the frame for mapview - in google GMSMap for iOS6

后端 未结 5 1443
青春惊慌失措
青春惊慌失措 2020-12-11 07:47

I am trying to load places inside Google Map View for iOS6. How to set the frame for the Map ? Currently it is fullscreen

 -(void)loadView {

   GMSCameraPos         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-11 08:01

    It's hard to say if your problem here is adding the map view or something upstream.

    Have you set a breakpoint in -viewDidLoad to ensure that it gets called?

    Check the bounds of newView to make sure it's what you expect. Is newView visible? Is it a subview of self.view ?

    One trick you can use when trying to ensure your views are where you expect them is to set the background color to something obvious, like red, and then you can see plainly on screen if it's what you expect. If you do this and don't see a red box, then your problem isn't with maps, it's somewhere upstream in the code you haven't shown us.

    Good luck.

提交回复
热议问题