NetNewsWire/NetNewsWire-iOS/DetailViewController.swift

46 lines
873 B
Swift
Raw Normal View History

//
// DetailViewController.swift
2018-08-29 07:18:24 +02:00
// 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()
}
}
}