10 #import <UIKit/UIKit.h> 20 @interface CBLUITableSource : NSObject <UITableViewDataSource, UIDataSourceModelAssociation>
23 @property (nonatomic, retain) IBOutlet UITableView*
tableView;
32 #pragma mark Row Accessors: 50 #pragma mark Displaying The Table: 65 #pragma mark Editing The Table: 71 - (BOOL) deleteDocumentsAtIndexes: (
CBLArrayOf(NSIndexPath*)*)indexPaths
72 error: (NSError**)outError;
76 error: (NSError**)outError;
82 @protocol CBLUITableDelegate <UITableViewDelegate>
88 willUseCell:(UITableViewCell*)cell
94 cellForRowAtIndexPath:(NSIndexPath *)indexPath;
116 deleteFailed:(NSError*)error;
#define NS_ASSUME_NONNULL_BEGIN
Definition: CBLBase.h:20
UITableViewRowAnimation rowDeleteAnimation
Animation used when deleting rows; default is UITableViewRowAnimationAutomatic.
Definition: CBLUITableSource.h:55
A CBLQuery subclass that automatically refreshes the result rows every time the database changes...
Definition: CBLQuery.h:151
#define nullable
Definition: CBLBase.h:22
A CouchbaseLite document (as opposed to any specific revision of it.)
Definition: CBLDocument.h:16
UITableViewRowAnimation rowInsertAnimation
Animation used when inserting new rows; default is UITableViewRowAnimationAutomatic.
Definition: CBLUITableSource.h:53
#define NS_ASSUME_NONNULL_END
Definition: CBLBase.h:21
UITableViewRowAnimation rowReplaceAnimation
Animation used when replacing rows; default is UITableViewRowAnimationAutomatic.
Definition: CBLUITableSource.h:57
A result row from a CouchbaseLite view query.
Definition: CBLQuery.h:229
A UITableView data source driven by a CBLLiveQuery.
Definition: CBLUITableSource.h:20
CBLArrayOf(CBLQueryRow *) *rows
The current array of CBLQueryRows being used as the data source for the table.
CBLLiveQuery * query
The query whose rows will be displayed in the table.
Definition: CBLUITableSource.h:26
BOOL deletionAllowed
Is the user allowed to delete rows by UI gestures? (Defaults to NO.)
Definition: CBLUITableSource.h:68
void reloadFromQuery()
Rebuilds the table from the query's current .rows property.
IBOutlet UITableView * tableView
The table view to manage.
Definition: CBLUITableSource.h:23
NSString * labelProperty
If non-nil, specifies the property name of the query row's value that will be used for the table row'...
Definition: CBLUITableSource.h:62