mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md
This commit is contained in:
1 parent
32bec0786c
commit
8dba912c10
1 file changed
+3
-3
@@ -189,9 +189,9 @@ class PersonsViewController: UITableViewController {
|
||||
|
||||
let persons: [Person]?
|
||||
|
||||
// Just like Person, with extra `petCount`:
|
||||
// Subclass Person, with an extra `petCount`:
|
||||
|
||||
class PersonViewModel : Person {
|
||||
private class PersonViewModel : Person {
|
||||
var petCount: Int?
|
||||
|
||||
override func updateFromDatabaseRow(row: Row) {
|
||||
@@ -214,7 +214,7 @@ class PersonsViewController: UITableViewController {
|
||||
"GROUP BY persons.id")
|
||||
}
|
||||
|
||||
self.tableView.reloadData()
|
||||
tableView.reloadData()
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
Reference in new issue
Block a user