【发布时间】:2013-05-02 12:51:25
【问题描述】:
所以,当用户单击“StyledStringElement”时,我试图打开一个电子邮件界面 - 为此,我一直在调用点击事件,但我得到了错误 -
“错误 CS1502:最佳重载方法匹配 `MonoTouch.Dialog.Section.Add(MonoTouch.Dialog.Element)' 有一些 无效参数 (CS1502)"
和
“错误 CS1503:参数
#1' cannot convertvoid' 表达式要键入 `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);
});
是什么导致了这个错误,我该如何解决?
【问题讨论】:
标签: c# ios mono xamarin.ios monodevelop