Hello,
I have been facing this weird issue with CBLUITableSource. The cellforRow
does not launch and my custom cells is not launched (even though other
calls like updateFromQuery do fire) when view is loaded.
I have a custom cell xib and a xib with a tableview.(i hooked the table
source object to the tableview as seen on examples such as todolite,
omoidebase.
in my viewdidload :
[self.tableView registerNib:[UINib nibWithNibName:@"DRContactsTableViewCell"
bundle:nil] forCellReuseIdentifier:@"contactCell"];
CBLQuery *query = [DRContacts queryContactsBy:self.currentOfferID error
:&error];
if (_dataSource) {
_dataSource.query = query.asLiveQuery;
// _dataSource.tableView = self.contactsTableView;
}
it does not go here when I check on breakpoints:
- (UITableViewCell *)couchTableSource:(CBLUITableSource *)source
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
DRContactsTableViewCell *cell = (DRContactsTableViewCell *)[source.
tableView
dequeueReusableCellWithIdentifier:CellIdentifier
forIndexPath:indexPath];
CBLQueryRow *row = [source rowAtIndex:indexPath.row];
DRContacts *contactCell = [DRContacts modelForDocument:row.document];
cell.contactName.text = contactCell.nom;
return cell;
}
a screenshot below for the xib outlets.
Can anyone please help.
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/5deb8e30-128d-451b-bbb6-2248e8302abb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.