PSPDFOutlineViewControllerDelegate
Objective-C
@protocol PSPDFOutlineViewControllerDelegate <NSObject>
Swift
protocol OutlineViewControllerDelegate : NSObjectProtocol
Delegate for the OutlineViewController
.
-
Called when a outline element cell is tapped.
Declaration
Objective-C
- (BOOL)outlineController: (nonnull PSPDFOutlineViewController *)outlineController didTapAtElement:(nonnull PSPDFOutlineElement *)outlineElement;
Swift
func outlineController(_ outlineController: OutlineViewController, didTapAt outlineElement: PSPDFOutlineElement) -> Bool
Parameters
outlineController
Corresponding
OutlineViewController
.outlineElement
Tapped outline element.
Return Value
Return
false
if no action was executed, which will then calloutlineCellDidTapDisclosureButton:
if the element is expandable. Returntrue
if an action was executed and no further methods should be called.