ユーザーの場所を示す MKMapView と MKUserTrackingBarButtonItem があります。次の行でエッジ パディングを追加しました。
mapView.setVisibleMapRect(mapView.visibleMapRect, edgePadding: UIEdgeInsetsMake(0.0, 0.0, (self.mapView.bounds.height-88.0)/2, 0.0), animated: true)
私は動作しますが、問題は、追跡ボタンをタップしてユーザーの位置を中心にすると、端のパディングがなくなることです。
常に機能させる方法は?
ありがとう