CBLQuery *query = [DRContacts queryContactsBy:self.currentOfferID error:&error];
if (_dataSource) {
_dataSource.query = query.asLiveQuery;
_dataSource.tableView = self.tableView;
// _dataSource.tableView = self.contactsTableView;
}
CBLQueryEnumerator *rows = [query run:&error];
and in the couchebase table delegate:
- (UITableViewCell *)couchTableSource:(CBLUITableSource *)source cellForRowAtIndexPath:(NSIndexPath *)indexPath {
DRContactsTableViewCell *cell = (DRContactsTableViewCell *)[source.tableView
dequeueReusableCellWithIdentifier:CellIdentifier
forIndexPath:indexPath];
CBLQueryRow *row = [source rowAtIndex:indexPath.row];
//how to tell it that i have two queries from where i need to get the rows...
DRContacts *contactCell = [DRContacts modelForDocument:row.document];
return cell;
}
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/L1p5QAhSkRI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/a3a0570f-3f71-42ed-9d74-53f3f156356c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.