SCSCategoryViewController Class Reference
Inherits from | UIViewController |
---|---|
Declared in | SCSCategoryViewController.h |
Overview
View controller capable of showing the contents of a category, whether it be child categories, articles, or both. It can be controlled through assigning a containing category to the category
property, and implementing the SCSCategoryViewControllerDelegate
methods.
displayMode
The display mode used to create this category controller. This value cannot be changed at runtime.
@property (nonatomic, assign, readonly) SCSCategoryDisplayMode displayMode
Declared In
SCSCategoryViewController.h
category
The category this controller is displaying the contents of.
@property (nullable, nonatomic, strong) SCSCategory *category
Declared In
SCSCategoryViewController.h
delegate
Delegate property to use to interact with the category view controller.
@property (nullable, nonatomic, weak) NSObject<SCSCategoryViewControllerDelegate> *delegate
Declared In
SCSCategoryViewController.h
searchEnabled
Indicates whether or not searching is allowed within this controller.
@property (nonatomic, assign, getter=isSearchEnabled) BOOL searchEnabled
Declared In
SCSCategoryViewController.h
– initWithCategory:displayMode:
Designated initializer.
- (instancetype)initWithCategory:(nullable SCSCategory *)category displayMode:(SCSCategoryDisplayMode)displayMode
Parameters
category |
Category to show. |
---|---|
displayMode |
The type of contents to show within the category controller. |
Return Value
Initialized view controller.
Declared In
SCSCategoryViewController.h