HBRootListController Class Reference

Inherits from HBListController : PSListController
Declared in HBRootListController.h

Overview

The HBRootListController class in CepheiPrefs provides a list controller class that should be used as the root of the package’s settings. It includes two class methods you can override to provide a default message and a URL that the user can share via a sharing button displayed to the right of the navigation bar.

It is recommended that you use this class even if its current features aren’t appealing in case of future improvements or code that relies on the presence of an HBRootListController.

Constants

+ hb_shareText

A string to be used as a default message when the user shares the package to a friend or social website. Override this method to return your own string.

+ (nullable NSString *)hb_shareText

Return Value

By default, nil.

Discussion

If the return value of this method and hb_shareURL are nil, the sharing button will not be displayed.

Declared In

HBRootListController.h

+ hb_shareURL

The URL to be shared when the user shares the package to a friend or social website. Override this method to return your own URL.

+ (nullable NSURL *)hb_shareURL

Return Value

By default, nil.

Discussion

If the return value of this method and hb_shareText are nil, the sharing button will not be displayed.

Declared In

HBRootListController.h