-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMovieUIViewController.swift
41 lines (31 loc) · 1010 Bytes
/
MovieUIViewController.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// MovieUIViewController.swift
// A1
//
// Created by Ricky Wu on 2016/4/4.
// Copyright (c) 2016年 RMIT. All rights reserved.
//
import UIKit
class MovieUIViewController: UIViewController {
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var langLabel: UILabel!
@IBOutlet weak var posterImageView: UIImageView!
@IBOutlet weak var plotLabel: UILabel!
// @IBOutlet weak var MovieDetailScrollerView: UIScrollView!
var movie: Movie?
override func viewDidLoad() {
super.viewDidLoad()
let image = movie?.image
posterImageView.image = image
let title = movie?.title
titleLabel.text = title
let lang = movie?.lang
langLabel.text = lang
let plot = movie?.plot
plotLabel.text = plot
//MovieDetailScrollerView.contentSize.height = 9000
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}