Annotation view controller

In this document

The AnnotationViewController class shows a list of all annotations in a document being viewed by a PTPDFViewCtrl. The list contains any comments that have been added to the annotations.

The annotations list control is part of the Tools library, so make sure you have added the Tools library to your project.

Showing an annotation view controller

To create a new annotation view controller instance and display it from another view controller, supply a PTPDFViewCtrl instance to the AnnotationViewController designated initializer:

The annotation view controller must be pushed onto a navigation controller's stack before being shown.

You can set a delegate to be notified by the annotation view controller when annotations are selected with the AnnotationViewControllerDelegate protocol. This protocol allows enables switching between outline and bookmark view controllers with the bottom segmented control. (See the CompleteReader sample for usage of the AnnotationViewController.)