IOS Google Map Custom InfoWindow Xib error

心不动则不痛 提交于 2020-01-07 03:04:17

问题


Hello!

I want to make Custom Marker InfoWindow Using Swift & Xib

  1. Create Xib - size width:200 / Height: 200
  2. But Not change Size in App
  3. So I'm doing set size in program programmatically Infowindow.frame.size.width = 200 Infowindow.frame.size.height = 200
  4. Now change size!

by the way, I want to change size in Xib, but It was now working... How can I do?


回答1:


You need to set delegate:

class YourViewController: UIViewController, GMSMapViewDelegate

In your viewDidLoad() method

mapView.delegate = self


来源:https://stackoverflow.com/questions/33748622/ios-google-map-custom-infowindow-xib-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!