Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

About thumb view

More
IP: 192.168.0.71 8 years 8 months ago #12645 by manwon
About thumb view was created by manwon
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
More
IP: 192.168.0.71 8 years 8 months ago #12648 by stronglee
Replied by stronglee on topic About thumb view
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.
More
IP: 192.168.0.71 8 years 8 months ago #12649 by manwon
Replied by manwon on topic About thumb view
Thanks for your reply.
I mean thumb view is below image.

https://ibb.co/ezKFs5
More
IP: 192.168.0.71 8 years 8 months ago #12652 by stronglee
Replied by stronglee on topic About thumb view
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"];
More
IP: 192.168.0.71 8 years 8 months ago #12655 by manwon
Replied by manwon on topic About thumb view
Thanks.

I want to add the label for page number in the scrolling thumb view. Where can I implement it?
More
IP: 192.168.0.71 8 years 8 months ago #12658 by stronglee
Replied by stronglee on topic About thumb view
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
Time to create page: 0.413 seconds
Powered by Kunena Forum