virt2/assets/vendor_plugins/ace-builds-master/demo/kitchen-sink/docs/swift.swift

16 lines
476 B
Swift
Raw Permalink Normal View History

import UIKit
class DetailsViewController: UIViewController {
var album: Album?
@IBOutlet weak var albumCover: UIImageView!
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
override func viewDidLoad() {
super.viewDidLoad()
mLabel.text = self.album?.title && "Juhu \( "kinners" )! "
albumCover.image = UIImage(data: NSData(contentsOfURL: NSURL(string: self.album!.largeImageURL)!)!)
}
}