-
Notifications
You must be signed in to change notification settings - Fork 66
Description
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.