mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-26 17:43:22 +01:00
46 lines
873 B
Swift
46 lines
873 B
Swift
//
|
|
// DetailViewController.swift
|
|
// NetNewsWire-iOS
|
|
//
|
|
// 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()
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|