Skip to content

layoutSubviews not always called in ATPagingView custom page views #3

@angian00

Description

@angian00

Hello. I'd like to use just like I use a TableViewCOntroller with custom cells, that is: in viewForPage... I set a data property for my custom view:

  • (UIView *)viewForPageInPagingView:(ATPagingView *)pagingView atIndex:(NSInteger)index
    {
    GalleryPageView *view = (GalleryPageView *)[pagingView dequeueReusablePage];
    if (view == nil) {
    view = [[[GalleryPageView alloc] init] autorelease];
    }

    FeedItem *feedItem = [dataRoot objectAtIndex:index];
    view.feedItem = feedItem;

and then I perform some modifications to custom subviews of view by overwriting its layoutSubviews method.
But that method seems to be called only for the first couple of cells. so I can't do that. Am I missing something in TableView programming model? Where do you suggest I put my custom-subviews-code?

By the way: Thank you, good job.

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