Created
June 5, 2014 09:32
-
-
Save kirai/23b4f1dbb754c8eda424 to your computer and use it in GitHub Desktop.
Swift Doge App ref: http://qiita.com/kirai@github/items/ab0968de4eaf6aa75fdd
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
var image: UIImage = UIImage(named: "dog.png") | |
dogImageView.image = image |
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 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