我有一个UITableview. 其中之一UITableViewCell's是UICollectionview实例名称为“amenityView”。UICollectionViewDelegate和 的设置UICollectionViewDataSource如下storyboard图所示。调用以下方法并按预期填充数据。
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
- (UICollectionViewCell *)collectionView:(UICollectionView *)collection cellForItemAtIndexPath:(NSIndexPath *)indexPath

但是,当我选择UICollectionViewCell包含在UICollectionView. 我错过了什么?
-(void) collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
-(void) collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath
更新:在此方法中返回 YEScollectionView:shouldSelectItemAtIndexPath:将调用以下两个方法。至少那是我所缺少的。希望这会帮助一些身体...
