我使用的是swift,因为它是一种相当新的编程语言,所以没有太多的文档。 我正在尝试使按钮充当超链接。我创建了一个IBAction,但我不知道从哪里去。这里是我的代码:制作按钮超链接Swift
import UIKit
class ViewController: UIViewController {
@IBAction func WebLink(sender: AnyObject) {
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
查看此文章:http://stackoverflow.com/questions/25477547/how-can-i-create-a-hyperlink-with-swift – Glynbeard 2014-11-14 21:24:17