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

Thumbnail doesn't appear

More
9 years 10 months ago #10549 by colliot
Hello,

I'm blocking on a little problem and can't understand what i am doing wrong:
I'm trying to add your PDFThumbnail to my custom application with the piece of code:
Code:
CGRect boundsc = [[UIScreen mainScreen]bounds]; if (![self isPortrait] && boundsc.size.width < boundsc.size.height) { float height = boundsc.size.height; boundsc.size.height = boundsc.size.width; boundsc.size.width = height; } int cwidth = boundsc.size.width; int cheight = boundsc.size.height; float hi = self.navigationController.navigationBar.bounds.size.height; if(SYS_VERSION>=7.0) { m_thumbview = [[PDFThumbView alloc] initWithFrame:CGRectMake(0, cheight-50, cwidth, 50)]; } else{ m_thumbview = [[PDFThumbView alloc] initWithFrame:CGRectMake(0, cheight-hi-50-20, cwidth, 50)]; } [m_thumbview vOpen :m_doc :self]; [self.view addSubview:m_thumbview]; return 1;

but it doesn't appear...

Could i send you my sample code in order to understand what went wrong?


By advance thanks
More
9 years 10 months ago #10559 by emanuele
Replied by emanuele on topic Thumbnail doesn't appear
Hi,

is your m_doc correctly initialized?
You should call [m_doc open:path :pwd]; somewhere before add the thumbview
Time to create page: 0.390 seconds
Powered by Kunena Forum