Hi,
on rotation event the page is re-rendered, so you lose the current annotation instance.
You can get the annotation index when you tap on it the first time (add [m_annot getIndex], in PDFView class when the annotation is tapped), then get the same annotation after the rotation using the index.
In PDFView class you can add a method to force the OnAnnotEditBox with something like:
m_annot = [page annotAtIndex:index];
[m_annot getRect:&m_annot_rect];
annotRect.origin.x = m_annot_rect.left / m_scale;
annotRect.origin.y = m_annot_rect.top / m_scale;
annotRect.size.width = (m_annot_rect.right - m_annot_rect.left)/m_scale;
annotRect.size.height = (m_annot_rect.bottom - m_annot_rect.top)/m_scale;
[m_delegate OnAnnotEditBox :annotRect : nuri :([m_annot getEditTextSize]/m_scale) * [m_view vGetScale]];