错误是“无法将类型'[AnyObject]的值转换为期望的参数类型'[String]?'”。有谁知道如何解决这一问题?我在Xcode7上得到了字符串错误
func send() {
let picker = MFMailComposeViewController()
picker.mailComposeDelegate = self
picker.setSubject(subject.text!)
//the code below is the reason I got error for
picker.setToRecipients(Const.CONTACT_MAIL)
picker.setMessageBody(body.text, isHTML: true)
presentViewController(picker, animated: true, completion: nil)
}
什么是const的在你的代码? – user3182143
这一行需要预期的类型Const.CONTACT_MAIL –
那么我该怎么做? – hujihuji