PSPDFAvoidingScrollViewDelegate

Objective-C

@protocol PSPDFAvoidingScrollViewDelegate <UIScrollViewDelegate>

Swift

protocol AvoidingScrollViewDelegate : UIScrollViewDelegate

Custom sub-protocol of UIScrollViewDelegate with additional optional callbacks.

  • May be used to fine-tune when the keyboard should be avoided. If this method is not implemented, we assume YES.

    Declaration

    Objective-C

    - (BOOL)scrollViewShouldAvoidKeyboard:
        (nonnull PSPDFAvoidingScrollView *)scrollView;

    Swift

    optional func scrollViewShouldAvoidKeyboard(_ scrollView: AvoidingScrollView) -> Bool