Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // DetailViewController.swift
- // master_gardener
- //
- // Created by Poster Corp on 10/16/18.
- // Copyright © 2018 pintobeans. All rights reserved.
- //
- import UIKit
- class DetailViewController: UIViewController {
- @IBOutlet weak var detailDescriptionLabel: UILabel!
- func configureView() {
- // Update the user interface for the detail item.
- if let detail = detailItem {
- if let label = detailDescriptionLabel {
- label.text = detail.description
- }
- }
- }
- override func viewDidLoad() {
- super.viewDidLoad()
- // Do any additional setup after loading the view, typically from a nib.
- configureView()
- }
- var detailItem: NSDate? {
- didSet {
- // Update the view.
- configureView()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement