PTAnnotationViewCellDelegate

@protocol PTAnnotationViewCellDelegate <NSObject>

The interface for the delegate of a PTAnnotationViewCell instance.

  • Called by the annotation view cell to determine whether replies should be shown for the annotation.

    If this method is not implemented by the delegate, the default return value is NO.

    Declaration

    Objective-C

    - (BOOL)annotationViewCell:(nonnull PTAnnotationViewCell *)cell
        shouldShowRepliesForAnnotation:(nonnull id<PTAnnotationModel>)annotation;

    Swift

    optional func annotationViewCell(_ cell: PTAnnotationViewCell, shouldShowRepliesForAnnotation annotation: any PTAnnotationModel) -> Bool

    Parameters

    cell

    The annotation view cell.

    annotation

    The annotation model.

    Return Value

    YES if annotation reply comments should be shown, NO otherwise.