How to make paging off of vertical direction in WWDC2010 photoScroller.
Posted
by
user357383
on Stack Overflow
See other posts from Stack Overflow
or by user357383
Published on 2011-01-07T03:46:19Z
Indexed on
2011/01/07
3:53 UTC
Read the original article
Hit count: 140
In WWDC2010 sample code "photoScroller", in landscape mode, I want to change image size to 480*751. But there is vertical paging in this mode.
In this sample, zooming mode doesn't have vertical paging. So I want to same as this.
Please teach me how to fix this sample code.
I changed this code as follows.
- (CGRect)frameForPagingScrollView
{
CGRect frame = CGRectMake(0, 0, 480, 751);
frame.origin.x -= PADDING;
frame.size.width += (2 * PADDING);
return frame;
}
Thank you
© Stack Overflow or respective owner