The annot which i have added now i want to remove the same annot
in vSelMarkup function i am saving the annot as below code:
PDFVPage *vpage = [m_view vGetPage:pos.pageno];
PDFPage *page = [vpage GetPage];
[self setModified:[vpage SetSelMarkup:type :color] force:NO];
[actionManger push:
ASAdd alloc] initWithPage:pos.pageno page:page index:(page.annotCount - 1);
float xPos = [defaults floatForKey:@"XStartPos"];
float yPos = [defaults floatForKey:@"YStartPos"];
NSString *AnnotationID = [NSString stringWithFormat:@"%d_%f_%f",[self vGetCurrentPage], xPos, yPos];
PDFAnnot *annot = [page annotAtIndex: [page annotCount] - 1];
[annot setName:AnnotationID];
[self updateLastAnnotInfoAtPage:page];
[m_view vRenderSync:pos.pageno];
[self refresh];
here now i am updating the annot name and then i want to delete the same annot with name but it is giving me null in the function which i have shared previously.