2017-02-20 14 views

答えて

0

私のストーリーボードファイルのソースコードを見て、この問題の解決方法を見つけました。

私の古いGMSMapViewsはこのように見えた:

<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" 
     id="hbm-BT-3Ow" customClass="GMSMapView"> 

私の新しいものは、このように見えた:

<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" 
     id="alb-9Z-Vu8" customClass="GMSMapView" 
     customModule="{My Project Name}" customModuleProvider="target"> 

私は新しいUIViewのためGMSMapViewにカスタムクラスを設定すると、関連するモジュールは 'でした私のプロジェクト '以前の' none 'の代わりに。

enter image description here

問題は、私は私のプロジェクトでGMSMapViewのためのカスタム拡張を作成したということでした。

extension GMSMapView { 

    var visibleBounds: GMSCoordinateBounds { 
     return GMSCoordinateBounds(region: self.projection.visibleRegion()) 
    } 
} 

ソリューション:

extension GoogleMaps.GMSMapView私の問題を修正するextension GMSMapViewを変更します。

関連する問題