your book is very good, it helped a lot. Unfortunately I’m having big trouble doing something with my iPhone app.
Basically I have a sub class of a UIScrollView.. in the initialization method I intialize a CASrollLayer and add that (after doing some config stuff) as a sub layer to self.layer
The program works good and all, the problem is that I would like to insert a lot of layers in the scroll, so that while I drag I can keep looking at them.. I managed that.. only with images tho. I usually allocate and initialize UIImageViews and add their layers to the CAScrollLayer as sublayers
My problem is that I would like to add (this same thing) but I want to them to be tapable and be able for my program to know which layer was tapped inside the scroll…
I was thinking in subclassing CALayer and giving some instance variables to know a little bit about the particular layer, but they don’t have any event handling since they don’t inherit from UIControl..
What can I do?