SCSArticleQueryListViewController

@interface SCSArticleQueryListViewController : SCSCategoryViewController

View controller capable of showing the list of articles that are the result of a query.

  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithQuery:(nullable SCSArticleQuery *)articleQuery;

    Swift

    init(query articleQuery: SCSArticleQuery?)

    Parameters

    articleQuery

    Optional query to use when constructing the view controller.

    Return Value

    Initialized view controller.

  • Delegate property to use to interact with the view controller.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable)
        NSObject<SCSArticleQueryListViewControllerDelegate> *delegate;

    Swift

    weak var delegate: SCSArticleQueryListViewControllerDelegate? { get set }
  • Article query to use when showing articles.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) SCSArticleQuery *articleQuery;

    Swift

    @NSCopying var articleQuery: SCSArticleQuery? { get set }