簡體   English   中英

有沒有辦法在 iOS 項目上禁用 xamarin.forms.maps 上的信息窗口?

[英]Is there a way to disable info window on xamarin.forms.maps on iOS project?

我想在 xamarin.forms.maps 中的引腳上禁用信息窗口? 有沒有辦法做到這一點 ?

這是關於刪除地圖中的信息窗口的代碼,您可以將其添加到您要使用的方法中

   nativeMap.DidDeselectAnnotationView += OnDidDeselectAnnotationView;
     void OnDidDeselectAnnotationView(object sender, MKAnnotationViewEventArgs e)
            {
                if (!e.View.Selected)
                {
                    customPinView.RemoveFromSuperview();
                    customPinView.Dispose();
                    customPinView = null;
                }
        }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM