Skip to content

CarouselView not calling carouselView:cellForColumnAtIndex: for off-screen views #5

@coryalder

Description

@coryalder

If you have a bunch of items to the dataSourceArray before creating the CarouselView, any cells that are outside of the screen view are not loaded. Ever.

self.dataSourceArray = [NSMutableArray array];
[self.dataSourceArray addObject:@"One"];
[self.dataSourceArray addObject:@"Two"];
[self.dataSourceArray addObject:@"Three"];
[self.dataSourceArray addObject:@"Four"];
[self.dataSourceArray addObject:@"Five"];
[self.dataSourceArray addObject:@"Six"];
[self.dataSourceArray addObject:@"Seven"];
_carouselView = [[CarouselView alloc] initWithFrame:CGRectMake(10, 200, 738, 200) dataSource:self delegate:self];

Only views one through four will be visible.

Similarly, if you add ~six items to the data source array, and then scroll all the way to the right and tap "Insert Column" one more time... nothing happens. if you scroll back to the left and hit insert again, the width of the view appears to be large enough to contain the missing cells, but they are not there.

Been playing with the source, and I'll add a pull request if I figure out how to fix this.

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