mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
FetchedRecordsController documentation
This commit is contained in:
1 parent
582dafd50d
commit
136d262d4c
3 files changed
+4
-3
No files matched your search
@@ -463,6 +463,7 @@
|
||||
568C7AAA1CA6C63100796484 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ class FetchedRecordsControllerDemoViewController: UITableViewController {
|
||||
personsController = FetchedRecordsController(dbQueue, request: request, compareRecordsByPrimaryKey: true)
|
||||
personsController.delegate = self
|
||||
personsController.performFetch()
|
||||
|
||||
|
||||
configureToolbar()
|
||||
}
|
||||
|
||||
|
||||
@@ -2355,7 +2355,7 @@ See also [TableChangeObserver.swift](https://gist.github.com/groue/2e21172719e63
|
||||
|
||||
It looks and behaves very much like [Core Data's NSFetchedResultsController](https://developer.apple.com/library/ios/documentation/CoreData/Reference/NSFetchedResultsController_Class/). This documentation of FetchedRecordsController is indeed directly inspired from Apple's.
|
||||
|
||||
> :point_up: **Note**: In its current state, FetchedRecordsController does not support grouping table view rows into sections: it generates a unique section.
|
||||
> :point_up: **Note**: In its current state, FetchedRecordsController does not support grouping table view rows into custom sections: it generates a unique section.
|
||||
|
||||
Given a fetch request, and a type that adopts the [RowConvertible](#rowconvertible-protocol) protocol, such as a subclass of the [Record](#record-class) class, a FetchedRecordsController is able to return the results of the request in a form that is suitable for a UITableView, with one table view row per fetched record.
|
||||
|
||||
@@ -2460,7 +2460,7 @@ func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexP
|
||||
}
|
||||
```
|
||||
|
||||
> :point_up: **Note**: In its current state, FetchedRecordsController does not support grouping table view rows into sections: it generates a unique section.
|
||||
> :point_up: **Note**: In its current state, FetchedRecordsController does not support grouping table view rows into custom sections: it generates a unique section.
|
||||
|
||||
|
||||
### Responding to Changes
|
||||
|
||||
Reference in new issue
Block a user