Skip to content

Instantly share code, notes, and snippets.

@kirai
Created June 5, 2014 09:32
Show Gist options
  • Save kirai/23b4f1dbb754c8eda424 to your computer and use it in GitHub Desktop.
Save kirai/23b4f1dbb754c8eda424 to your computer and use it in GitHub Desktop.
var image: UIImage = UIImage(named: "dog.png")
dogImageView.image = image
import UIKit
class ViewController: UIViewController {
@IBOutlet var dogImageView : UIImageView = nil
override func viewDidLoad() {
super.viewDidLoad()
let label = UILabel()
label.frame = CGRect(x: 30.0, y: 30.0, width:200.0, height:200.0)
label.text = "Much Swift"
self.view.addSubview(label)
var image: UIImage = UIImage(named: "dog.png")
dogImageView.image = image
}
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