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 #12645

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 1
I want to change thumb view style. But I don't know where can change it.

1. The start point is center now. I want it is starting at the left.
2. I want add the padding between images.
3. When I selected the image, a blue rectangle will mask the thumb image, I want to remove it and add the solid color behind the thumb image.
4. Where can I set the thumb image size?

Thanks

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

About thumb view 6 years 8 months ago #12648

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
Hi,
In PDFThumbView , you can set thumbView frame.
If you want more customized,you can see the method in RDFileTableController.m
- (void)updateImageForCellAtIndexPath:(NSIndexPath *)indexPath
this method shows how generated a thumbView single page , and you can set custom page on a scrollview to set different padding or mode of thubView.

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

About thumb view 6 years 8 months ago #12649

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 1
Thanks for your reply.
I mean thumb view is below image.

https://ibb.co/ezKFs5

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

About thumb view 6 years 8 months ago #12652

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
Hello,
1.Modify PDFThumbView gap:
PDFThumbVIew.m Line 44, vOpen method ,second parameter is set page_gap
int gap = 4;
[m_view vOpen:doc :gap: self: &tback];

2.modify current select thumbView page border color
PDFV.m line 1305. vDraw method
[canvas FillRect:CGRectMake(left, top, [vpage GetWidth], [vpage GetHeight]) : "set the color you want"];

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

About thumb view 6 years 8 months ago #12655

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 1
Thanks.

I want to add the label for page number in the scrolling thumb view. Where can I implement it?

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

About thumb view 6 years 8 months ago #12658

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
There have two ways to add page number label:
1. Add PageNumberLabel as subView in PDFThumbView,you can refer to RDPDFViewController line.649 PDFThumbNailint method

2.Draw page number text at PDFV.m vDraw method, you can refer drawing text in UIView as follow
stackoverflow.com/questions/13894196/dra...iews-drawrect-method

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum