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

getRect:(PDF_RECT*) rect method causing crash

More
IP: 192.168.0.71 8 years 11 months ago - 8 years 11 months ago #12960 by yev
I'm trying to get rect for newly created Annotation.
Code:
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
Code:
-(void)getRect:(PDF_RECT *)rect { Page_getAnnotRect( m_page, m_handle, rect ); }
same happens for setRect:(PDF_RECT *)rect
What am I doing wrong ?
Last edit: 8 years 11 months ago by yev.
Time to create page: 0.406 seconds
Powered by Kunena Forum