如果我使用电子邮件地址“appname.app@company.co.za”,那么它不起作用,但是如果我尝试appname@company.co.za那就可以了。
我是从How to open mail app from Swift
尝试过的let url = NSURL(string: "appname.app@company.co.za")
UIApplication.sharedApplication().openURL(url!)
和这个
let url = NSURL(string: "appname.app@company.co.za".stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!)
UIApplication.sharedApplication().openURL(url!)