@IBAction func btnOpen(sender: AnyObject) {
//打开网页
UIApplication.sharedApplication().openURL(NSURL(string: "http://www.163.com")!)
}
@IBAction func SendMail(sender: AnyObject) {
//发邮件
UIApplication.sharedApplication().openURL(NSURL(string: "mailto://xxx@gmail.com")!)
}
@IBAction func SendSMS(sender: AnyObject) {
//发邮件
UIApplication.sharedApplication().openURL(NSURL(string: "sms://13XXXXXXXX")!)
}
@IBAction func TelCall(sender: AnyObject) {
//打电话
UIApplication.sharedApplication().openURL(NSURL(string: "tel://13XXXXXXXX")!)
}
UIApplication.sharedApplication().openURL
最新推荐文章于 2023-04-24 16:57:10 发布