thefaj / OpenFlow

CoverFlow API replacement for the iPhone
http://apparentlogic.com/openflow
818 stars 158 forks source link

Subclassing AFItemView to be able to add subviews to openflow #17

Open WarTech9 opened 13 years ago

WarTech9 commented 13 years ago

I am trying to add arbitrary UIViews to an AFOpenflowView, not just images. I am doing this by creating a subclass of of AFItemView, lets call it NewAFItemView, which represents the view I want to add. I also extended AFOpenFlowVIew, call it NewAFOpenFlowView and overrode the method

My overridden method, I allocate an NewAFItemView object and return it as the cover view for that index. The NewAFItemView views appear correctly in the open flow but scrolling is immediately disabled. Switching back to allocating AFItemViews works but using NewAFItemViews does not scroll.

I have not overridden any of the touch events.

Any ideas on what might be happening?

Cheers.