简体   繁体   中英

iOS - UICollectionView in UITableViewCell, problems when handling touch

I have a UICollectionView in every UITableViewCell of my UITableView . The program should perform a segue there is a click on the UITableViewCell but the cell is clickable just out of the UICollectionView .

It is clickable just in the red portions.

屏幕截图

Do you have any ideas?

You need to disable user interaction in each collection view:

In your storyboard uncheck here:

在此处输入图片说明

Or in your cellForRowAtIndexPath :

    cell.collectionView.userInteractionEnabled = NO;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM