mercredi 8 mars 2017

Designing a UITableView/Cell - iOS

I'm designing a UITableView using subviews to populate the reusable cell of it, and I wish some opinion about that. As I had tested, it works well. But, I don't know if it is a good solution.

The scenario is: I have a tableview with different kind of cells (layouts). When I was designing, it grows fast (my controller code), as I had to register a lot of cell and handle cellForRow. Then I come with that idea, to instantiate different subviews for one unique reusable cell and use a 'Presenter' to handle delegate/datasource. You think is that a problem? And is that a good approach?

Thanks in advance!

Ps.: sorry for any english error!

Aucun commentaire:

Enregistrer un commentaire