Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

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

Open
jasper-chan opened this issue May 29, 2017 · 1 comment

Comments

@jasper-chan
Copy link

jasper-chan commented May 29, 2017

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. Is this the best way to do this?

@3lvis
Copy link
Owner

3lvis commented May 30, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants