Form icon indicating copy to clipboard operation
Form copied to clipboard

How does one subscribe a custom cell's FORMBaseFieldDelegate to the conforming class FORMDataSource?

Open jasper-chan opened this issue 7 years ago • 1 comments

Hello,

Recently we've been creating our own custom cell classes. I subclassed them off of the FORMBaseFieldCell class and I would like to make use of the delegate in there. What is the recommended way for someone to set the delegate found in FORMBaseFieldCell to the conforming class FORMDataSource without directly modifying the source code?

EDIT: So far, in the block configureCellForItemAtIndexPathBlock, I cast the collectionView.dataSource object as an id<FORMBaseFieldDelegate>. Is this the best way to do this?

jasper-chan avatar May 29 '17 15:05 jasper-chan

Hi @jasper-chan,

The process of adding custom cells is not optimal at the moment, currently, there's no way to make a custom cell behave like a normal embedded cell, a custom cell just has to handle everything on its own.

If you have any suggestions on how we could improve this let us know.

3lvis avatar May 30 '17 11:05 3lvis