一:在UITableViewCell xib 里 添加UICollecionView? 在注冊collectionView是要用UINib 方式加載 :
[self.dreamPlanMainTagCollectionView registerNib:[UINib nibWithNibName:@"YKDreamPlanMainTagCollectionCell" bundle:nil] forCellWithReuseIdentifier:@"YKDreamPlanMainTagCollectionCell"];
二:如果在UIViewController里注冊collectionView 可以用另一種注冊方式collectionView:
- (void)registerClass:(nullable Class)cellClass forCellWithReuseIdentifier:(NSString *)identifier
三:如果是在UITableViewCell xib里添加UICollecitonView ?在xib里 設置collectionView 的 delegate 和datasource 無效 蔚携,需要在代碼里從新設置delegate 和 datasource?
]