if(currentPoint.x == screenWidth){
currentPage += 1;
screenWidth += 768.0f;
[self loadScrollViewWithPage:currentPage];
if(realLastPage - currentPage <= step){
for(int i = 0; i < step; i++){
[myPage loadViewForPage:page cycles:realLastPage + i append:YES filename:filename array:pageArray];
NSLog(@"size of pageArray after adding elements: %d", [pageArray count]);
NSLog(@"page # added: %d", realLastPage + i);
//[pageArray removeObjectsInRange:NSMakeRange(0, step)];
//NSLog(@"size of pageArray after deleting elements: %d", [pageArray count]);
}
realFirstPage += step;
contentInstep += step;
scroller.contentInset = UIEdgeInsetsMake(0, 0, 0, kScrollObjWidth * contentInstep);
NSLog(@"real first page: %d; contentInstep: %d", realFirstPage, contentInstep);
}
}
NSLog(@"currentPage: %d", currentPage);
it's code, now i try implement scroller.contentInset to expand my scroller content size.