2018-02-05 22:29:46 +01:00
|
|
|
//
|
|
|
|
// DetailViewController.swift
|
2018-08-29 07:18:24 +02:00
|
|
|
// NetNewsWire-iOS
|
2018-02-05 22:29:46 +01:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 2/5/18.
|
|
|
|
// Copyright © 2018 Ranchero Software. 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()
|
|
|
|
}
|
|
|
|
|
|
|
|
override func didReceiveMemoryWarning() {
|
|
|
|
super.didReceiveMemoryWarning()
|
|
|
|
// Dispose of any resources that can be recreated.
|
|
|
|
}
|
|
|
|
|
|
|
|
var detailItem: NSDate? {
|
|
|
|
didSet {
|
|
|
|
// Update the view.
|
|
|
|
configureView()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|