16 lines
476 B
Swift
16 lines
476 B
Swift
|
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)!)!)
|
||
|
}
|
||
|
}
|