我有一个UIViewController,其中我有一个UITableView,在tableViewCell中我有一个collectionView。如何让我的ViewController成为CollectionView的代表,使自己与MVC架构保持一致?
发布于 2018-05-28 13:48:41
在cellForRowAt indexPath: IndexPath
集合cell.yourCollectionView.delegate = yourViewController
中,以及在ViewController中实现委托方法
https://stackoverflow.com/questions/50559109
复制相似问题