I'm running into a crash issue regarding annotations.
After selecting a Link in a PDF, iOS will launch Safari. Returning to the application, and immediately navigating away from the PDF controller, triggers the following steps:
- [AnnotEditTool willMoveToSuperview:], where superview is nil
- [AnnotEditTool deselectAnnotation]
- if ([m_moving_annotation IsValid] && ...
Bad Access crash attempting to ask the annotation if it is valid.
This doesn't happen every time, but often. I think the duration of the press on the link annotation is related to whether or not this happens.
Any idea what to do here? I've tried a couple of things, but all I can think of is a hack, and I'm unsure of unintended consequences of changing the behavior.