Hi,
How can I add an action to the Cells defined with NICellFactory in NetworkBlockCellsViewController example.
I just want to attach action like NIPushControllerAction to the cells in the UITableView.
// Set up our explicit mapping of NIDrawRectBlockCellObject -> NetworkDrawRectBlockCell.
_cellFactory = [[NICellFactory alloc] init];
[_cellFactory mapObjectClass:[NIDrawRectBlockCellObject class]
toCellClass:[NetworkDrawRectBlockCell class]];
// Notice that we're passing the _cellFactory instance rather than (id)[NICellFactory class]
// now.
_model = [[NITableViewModel alloc] initWithListArray:tableContents
delegate:_cellFactory];
Best,
Thanks,
Neph
_actions = [[NITableViewActions alloc] initWithTarget:self];
[_actions attachToClass:[NIDrawRectBlockCellObject class]
navigationBlock:NIPushControllerAction([ContentModesNetworkImageViewController class])];
and
added
self.tableView.delegate = [self.actions forwardingTo:self];
into the viewDidLoad and worked.
Thanks anyways.
Best,
Neph