- 작성시간 : 2014/07/21 21:29
- 퍼머링크 : always19.egloos.com/2995817
- 덧글수 : 0
"...:" :를 빼먹지 말기.
import UIKitclass MyViewController: UIViewController {let myButton = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: 50))init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)myButton.addTarget(self, action: "tappedButton:", forControlEvents: .TouchUpInside)}func tappedButton(sender: UIButton!) {println("tapped button")}}



덧글