PTThumbnailViewCell
@interface PTThumbnailViewCell : UICollectionViewCell
A cell for use by the PTThumbnailsViewController.
-
Whether night mode is enabled and the cell’s colors should be adjusted.
Declaration
Objective-C
@property (nonatomic) BOOL nightMode; -
The page label’s background view
Declaration
Objective-C
@property (nonatomic, strong) UIView *_Nonnull labelBackgroundView; -
Whether the cell is in an editable state. The default value is
NO.This property is set by the thumbnails view controller when it enters editing mode.
Declaration
Objective-C
@property (nonatomic, getter=isEditing) BOOL editing; -
Toggles the receiver into and out of editing mode.
Declaration
Objective-C
- (void)setEditing:(BOOL)editing animated:(BOOL)animated;Parameters
editingYESto enter editing mode,NOto leave it.animatedYESto animate the appearance or disappearance of editing-related controls,NOto make the transition immediate. -
Updates the page number of the cell.
Declaration
Objective-C
- (void)setPageNumber:(NSInteger)pageNumber pageLabel:(nullable NSString *)pageLabel;Parameters
pageNumberThe page number.
pageLabelThe page label.
-
Updates the state of the cell.
Declaration
Objective-C
- (void)setPageNumber:(NSInteger)pageNumber pageLabel:(nullable NSString *)pageLabel isCurrentPage:(BOOL)isCurrent isEditing:(BOOL)isEditing isChecked:(BOOL)isChecked;Parameters
pageNumberThe page number.
pageLabelThe page label.
isCurrentWhether the page number is the current page.
isEditingWhether the containing view controller is in edit mode.
isCheckedWhether the cell is selected/checked.
-
Associates a thumbnail image with a page number
Declaration
Objective-C
- (void)setThumbnail:(nullable UIImage *)image forPage:(NSInteger)pageNum;Parameters
imageThe image of the page.
pageNumThe page number of the page.
PTThumbnailViewCell Class Reference