0
如何在ViewController
中實例化CollectionViewController
並將CollectionViewControllers
視圖設置爲子視圖ViewController
? FlowLayout有一個問題,但我找不到解決方案。將CollectionViewController添加爲另一個ViewController的子視圖
我需要在兩個獨立的viewControllers
中的功能相同的collectionView
。因此,我想創建CollectionViewController
,我可以重複使用不同的屬性,並將其視圖分配給第二個ViewController
。