PTBookmarkViewCell


@interface PTBookmarkViewCell : UITableViewCell <UITextFieldDelegate>

A table view cell class capable of displaying user bookmark info.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) UITextField *textField

    Swift

    var textField: UITextField { get set }
  • Whether the text fields is editable.

    Can be set separately from the editing property, to allow the text to be edited outside of the UITableView’s edit mode.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isTextFieldEditable) BOOL textFieldEditable;

    Swift

    var isTextFieldEditable: Bool { get set }
  • Configures the cell with the given text.

    Declaration

    Objective-C

    - (void)configureWithText:(nonnull NSString *)text;

    Swift

    func configure(withText text: String)

    Parameters

    text

    The text to be used for the cell.

  • A view displayed at the leading edge of the cell that can be used to indicate some additional state of the bookmark.

    This view can be used to display a small indicator-like icon, for example.

    Note

    The default value of this property is nil.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIView *leadingIndicatorView;

    Swift

    var leadingIndicatorView: UIView? { get set }
  • The vertical alignment of the leadingIndicatorView.

    Note

    The default value of this property is PTBookmarkViewCellIndicatorAlignmentTop.

    Declaration

    Objective-C

    @property (nonatomic) PTBookmarkViewCellIndicatorAlignment leadingIndicatorAlignment;

    Swift

    var leadingIndicatorAlignment: PTBookmarkViewCell.IndicatorAlignment { get set }
  • The delegate of the bookmark view cell.

    Note

    The default value of this property is nil.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<PTBookmarkViewCellDelegate> delegate;

    Swift

    weak var delegate: (any PTBookmarkViewCellDelegate)? { get set }