fangyh

//
// ViewController.swift
// 跳转到fangyuhao.com
//
// Created by mac on 15/7/11.
// Copyright (c) 2015年 fangyuhao. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

@IBOutlet weak var btnjump: UIButton!
@IBOutlet weak var btnMailTo: UIButton!
@IBOutlet weak var btnSms: UIButton!
@IBOutlet weak var btnCall: UIButton!
override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
}
@IBAction func btnMailToClicked(sender: AnyObject) {
    UIApplication.sharedApplication().openURL(NSURL(string: "mailto://holyant@126.com")!)
}
@IBAction func btnSmsClicked(sender: AnyObject) {
    UIApplication.sharedApplication().openURL(NSURL(string: "sms://10086")!)
}
@IBAction func btnCallClicked(sender: AnyObject) {
    UIApplication.sharedApplication().openURL(NSURL(string: "tel://10086")!)

}

@IBAction func btnJumpClicked(sender: AnyObject) {
    UIApplication.sharedApplication().openURL(NSURL(string: "http://www.fangyuhao.com")!)
}
override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

}

分类:

技术点:

相关文章:

  • 2021-10-19
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-20
  • 2022-01-11
  • 2021-07-11
  • 2021-12-23
  • 2021-12-31
相关资源
相似解决方案