[英]How to access MapView Instance from other ViewController? (MapBox, Swift)
I am using a ContainerView
within my MapViewController
, which should be able to trigger the MapView
in the MapViewController
for a zooming-method. 我在
MapViewController
使用了ContainerView
,它应该能够触发MapViewController
的MapView
以获取缩放方法。 How can I reference the MapView
to manipulate it? 如何引用
MapView
进行操作? I did not find any method whatsoever, Android seems to have getMapAsync
. 我没有找到任何方法,Android似乎有
getMapAsync
。
通过在MapViewController中实现一个协议并在PageViewController中设置一个委托,我设法解决了该问题(基本上是两个不同ViewController之间的通信)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.