Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

About thumb view 6 years 8 months ago #12661

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 1
I want the scrollview content the start point at the left hand side. Where can I set the position?

Please Log in or Create an account to join the conversation.

About thumb view 6 years 8 months ago #12662

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
PDFThumb.m
line 61
-(void)vGoto:(int)pageno
{
int dx;
int dy;
[m_view vGetDeltaToCenterPage:pageno :&dx :&dy];
[m_view vSetSel:pageno];
[self scrollRectToVisible:CGRectMake(self.contentOffset.x + dx/m_scale, self.contentOffset.y + dy/m_scale, m_w/m_scale, m_h/m_scale) animated:true];
}

do not set DeltaCenterPage ,i think this is will fix the issue you said,or you can modify this func

Please Log in or Create an account to join the conversation.

About thumb view 6 years 8 months ago #12665

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 1
i change the contentOffSet to change the start position. If I scroll to right, the start point will return to center.

Please Log in or Create an account to join the conversation.

About thumb view 6 years 8 months ago #12668

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
Hi,
If you want set scrollView thumbview left,
in PFDV.m line.1084, -(void)vLayout method
e.g set left = 0; will render thumbview at left of screen.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum