所以,我試圖當用戶點擊「StyledStringElement」打開電子郵件接口 - 要做到這一點,我一直在呼籲對竊聽事件還我已經獲得了錯誤 -StyledStringElement「抽頭」事件
「錯誤CS1502:用於 `MonoTouch.Dialog.Section.Add(MonoTouch.Dialog.Element)最好重載的方法匹配」具有一些 無效的參數(CS1502)」
和
「錯誤CS1503:參數
#1' cannot convert
無效 '表情輸入 `MonoTouch.Dialog.Element'(CS1503)」
我使用的代碼 -
section.Add(new StyledStringElement("Contact Email",item.Email) {
BackgroundColor=UIColor.FromRGB(71,165,209),
TextColor=UIColor.White,
DetailColor=UIColor.White,
}.Tapped += delegate {
MFMailComposeViewController email = new MFMailComposeViewController();
this.NavigationController.PresentViewController(email,true,null);
});
是什麼原因造成這個錯誤我該如何解決它?