big-moving.ru/api/soft/Ace/demo/kitchen-sink/docs/swift.swift

16 lines
476 B
Swift
Raw Normal View History

2022-06-24 15:29:23 +05:00
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)!)!)
}
}