mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Project organization README.md WIP QueryBuilder documentation README.md WIP QueryBuilder documentation WIP QueryBuilder documentation TODO.md
35 lines
661 B
Swift
35 lines
661 B
Swift
//
|
|
// DetailViewController.swift
|
|
// iOS
|
|
//
|
|
// Created by Gwendal Roué on 08/07/2015.
|
|
// Copyright © 2015 Gwendal Roué. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class DetailViewController: UIViewController {
|
|
|
|
@IBOutlet weak var detailDescriptionLabel: UILabel!
|
|
|
|
var person: Person? {
|
|
didSet {
|
|
self.configureView()
|
|
}
|
|
}
|
|
|
|
func configureView() {
|
|
if let person = self.person {
|
|
if let label = self.detailDescriptionLabel {
|
|
label.text = person.fullName
|
|
}
|
|
}
|
|
}
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
self.configureView()
|
|
}
|
|
}
|
|
|