Skip to content

Instantly share code, notes, and snippets.

@mdobson
Created June 3, 2014 13:20
Show Gist options
  • Save mdobson/1d6d104b0045545536a3 to your computer and use it in GitHub Desktop.
Save mdobson/1d6d104b0045545536a3 to your computer and use it in GitHub Desktop.
Apple Swift Hello World App
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