Skip to content

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

@WarTech9

Description

@WarTech9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions