Hi, i tried to get annotation from touched point. I use the function annotAtPoint but this return the annotation rarely right.
This is my code on touchend
if ([[m_page GetPage] annotCount]) {
NSLog(@"%d",[[m_page GetPage] annotCount]);
Page_objsStart(&m_page);
PDF_RECT rect;
[[[m_page GetPage] annotAtPoint:point.x* m_scale :point.y* m_scale] getRect:&rect];
NSLog(@"%@ ",[[m_page GetPage] annotAtPoint:point.x* m_scale :point.y* m_scale]);
NSLog(@"%d ",[[[m_page GetPage] annotAtPoint:point.x* m_scale :point.y* m_scale] type]);
NSLog(@"fill color %d ",[[[m_page GetPage] annotAtPoint:point.x* m_scale :point.y* m_scale] getFillColor]);
NSLog(@"stroke color %d ",[[[m_page GetPage] annotAtPoint:point.x* m_scale :point.y* m_scale] getStrokeColor]);
NSLog(@"stroke width %f ",[[[m_page GetPage] annotAtPoint:point.x* m_scale :point.y* m_scale] getStrokeWidth]);
NSLog(@"rect %f",rect.top);
this return a value of annotation property only when i click in a part of the annotation and only for same annotation