Adding a UIViewController inside a UICollectionView Cell

前端 未结 4 2061
既然无缘
既然无缘 2021-01-04 04:22

How would I go about inserting a UIViewController inside a UICollectionView Cell?

4条回答
  •  难免孤独
    2021-01-04 05:11

    What Daniel said is correct, however if you have to add many childViewControllers to a UICollectionViewCell or UITableViewCell, it could be cumbersome to maintain.

    Here's a nice post from Suroush Khanlou which handles that complexity and simplifies the process.

    http://khanlou.com/2015/04/view-controllers-in-cells/

提交回复
热议问题