Add buttons to view returned by markerInfoWindow delegate method

后端 未结 5 750
逝去的感伤
逝去的感伤 2020-11-28 08:00

I\'m currently creating and returning a custom view with the google maps ios SDK by setting delegate to self and using the following code.

#pragma mark - GMS         


        
5条回答
  •  情深已故
    2020-11-28 08:16

    1)Create one subview which you want to show in infoWindow.

    2)Set frame of subview equals to frame of infoWindow view.

      [subView setFrame:infoview.frame];
      subView =  [[[NSBundle mainBundle] loadNibNamed:@"viewName" owner:self options:nil] objectAtIndex:0];
      [self.mapview addSubview:subView];
    

提交回复
热议问题