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

TOPIC:

Thumbnail doesn't appear 10 years 3 months ago #10549

  • colliot
  • colliot's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
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:
    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

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

Thumbnail doesn't appear 10 years 2 months ago #10559

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

is your m_doc correctly initialized?
You should call [m_doc open:path :pwd]; somewhere before add the thumbview

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

  • Page:
  • 1
Powered by Kunena Forum