You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
818 B
40 lines
818 B
//
|
|
// DetailViewController.swift
|
|
// TournamentStats
|
|
//
|
|
// Created by Laurent Morvillier on 02/06/2019.
|
|
// Copyright © 2019 Stax River. 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.
|
|
configureView()
|
|
}
|
|
|
|
var detailItem: NSDate? {
|
|
didSet {
|
|
// Update the view.
|
|
configureView()
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|