Created
June 3, 2014 13:20
-
-
Save mdobson/1d6d104b0045545536a3 to your computer and use it in GitHub Desktop.
Apple Swift Hello World App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet var button: UIButton | |
@IBOutlet var label: UILabel | |
@IBAction func buttonTapped(AnyObject) { | |
self.label.text = "Hello, World!" | |
} | |
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. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment