Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WarTech9 opened this issue May 4, 2011 · 0 comments
Open

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

WarTech9 opened this issue May 4, 2011 · 0 comments

Comments

@WarTech9
Copy link

WarTech9 commented May 4, 2011

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

  • (AFItemView *)coverForIndex:(int)coverIndex;

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant