getRect:(PDF_RECT*) rect method causing crash - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: getRect:(PDF_RECT*) rect method causing crash

getRect:(PDF_RECT*) rect method causing crash 1 year 2 months ago #12960

  • yev
  • yev's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I'm trying to get rect for newly created Annotation.
PDFAnnot *annotation = [currentPage annotAtIndex:0]; // We are having annotation here
PDF_RECT rect;
rect.left = 0.f;
rect.right = 0.f;
rect.top = 0.f;
rect.bottom = 0.f;
[annotation getRect:&rect];
I'm getting EXC_BAD_ACCESS
In the method
-(void)getRect:(PDF_RECT *)rect
{
Page_getAnnotRect( m_page, m_handle, rect );
}
same happens for setRect:(PDF_RECT *)rect
What am I doing wrong ?

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

Last edit: by yev.
  • Page:
  • 1
Powered by Kunena Forum