You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! It looks like this repo hasn't been updated for a while. That probably means the repo's not a high-priority for @ashfurrow. He'll answer this issue if he can, but just a head's up.
If you're using this project, you have the skills to improve it. If you've reported a bug, you are encouraged to open a pull request that fixes it. And of course, you're welcome to discuss with other developers in this repository's issues and pull requests. Have a great day!
havelio
changed the title
why UICollectionViewDataSource have to in UIViewController not in UITableViewCell ?
Why should UICollectionViewDataSource be in UIViewController instead of UITableViewCell ?
Mar 19, 2021
It's a good question, and it's a matter of opinion, really. I believe that UITableViewCells should only be concerned with display logic. To make them the data sources for the collection view would violate the single-responsibility principle. You could do it – there's nothing stopping you – but I would recommend against it.
Hi thanks for sharing,
Would you tell me what the problem if we put
UICollectionViewDataSource
in theUITableViewCell
?The text was updated successfully, but these errors were encountered: