KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a UICollectionView with a custom UICollectionViewCell . The UICollectionView scrolls horizontally, with each cell occupying all of the visible screen. The UICollectionViewCell has a UIView subview, which in turn has a UIScrollView subview. The UIScrollView is intended to scroll vertically, but it's not scrolling at all. I've tried setting the scroll view's contentSize with no success. I suspect that the UIScrollView is not getting any touch events rather than it being a size issue. Any suggestions? EDIT >> I'm now sure it's an event problem rather than anything specific to the UIScrollView . I've now overridden the pointInside: method in the UIView in the UICollectionViewCell and can see that it now returns false every time I tap on it. In that case you'd think that the tap event would propagate to the next subview , but the UIView still isn't getting events. I've tried adding a UIGestureRecognizer to the UIView but it never registers a tap. Could there be anything here intercepting the events that I'm not aware of?
Tags (comma-separated)
Save Edits
Cancel