nicklockwood/iCarousel — Issue #48: carousel:shouldSelectItemAtIndex: not being called
Author: sgbkgb
Created: 2011-10-20 08:49:11+00:00
State: open

I'm trying to use carousel:shouldSelectItemAtIndex: in my delegate and I'm finding that it isn't being called. I think I've tracked down the problem - what's happening is that the carousel adds my item view to its list, then calls containView: to wrap my item view in a container, and sets up a gesture recogniser for the container. Then in gestureRecognizer:shouldReceiveTouch: the touch parameter's view is the container, which isn't in the carousel's list, so indexOfView: returns NSNotFound and carousel:shouldSelectItemAtIndex: isn't called.

I'm not sure what the best way of fixing this would be - perhaps the carousel needs to be able to recognise its container views?