From 136d262d4c9d9fceeec663d2dc76fde4b45c4f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 28 Mar 2016 14:15:55 +0200 Subject: [PATCH] FetchedRecordsController documentation --- DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj | 1 + .../FetchedRecordsControllerDemoViewController.swift | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj index 387739255..8553f483a 100644 --- a/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj +++ b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj @@ -463,6 +463,7 @@ 568C7AAA1CA6C63100796484 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoiOS/FetchedRecordsControllerDemoViewController.swift b/DemoApps/GRDBDemoiOS/GRDBDemoiOS/FetchedRecordsControllerDemoViewController.swift index 25c94b5cd..931d7b618 100644 --- a/DemoApps/GRDBDemoiOS/GRDBDemoiOS/FetchedRecordsControllerDemoViewController.swift +++ b/DemoApps/GRDBDemoiOS/GRDBDemoiOS/FetchedRecordsControllerDemoViewController.swift @@ -16,7 +16,7 @@ class FetchedRecordsControllerDemoViewController: UITableViewController { personsController = FetchedRecordsController(dbQueue, request: request, compareRecordsByPrimaryKey: true) personsController.delegate = self personsController.performFetch() - + configureToolbar() } diff --git a/README.md b/README.md index f62e97997..383853442 100644 --- a/README.md +++ b/README.md @@ -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