CepheiPrefs — General

  • The HBAppearanceSettings class in CepheiPrefs provides a model object read by other components of Cephei to determine colors and other appearence settings to use in the user interface.

    Appearance settings are typically set on a view controller, via the -[PSListController(HBTintAdditions) hb_appearanceSettings] property. This is automatically managed by Cephei and provided to view controllers as they are pushed onto the stack.

    Most commonly, the API will be used by setting the hb_appearanceSettings property from the init method. The following example sets the tint color, table view background color, and customises the navigation bar with a background, title, and status bar color:

    - (instancetype)init {
        self = [super init];
    
        if (self) {
            HBAppearanceSettings *appearanceSettings = [[HBAppearanceSettings alloc] init];
            appearanceSettings.tintColor = [UIColor colorWithRed:66.f / 255.f green:105.f / 255.f blue:154.f / 255.f alpha:1];
            appearanceSettings.barTintColor = [UIColor systemRedColor];
            appearanceSettings.navigationBarTitleColor = [UIColor whiteColor];
            appearanceSettings.tableViewBackgroundColor = [UIColor colorWithWhite:242.f / 255.f alpha:1];
            appearanceSettings.statusBarStyle = UIStatusBarStyleLightContent;
            self.hb_appearanceSettings = appearanceSettings;
        }
    
        return self;
    }
    
    See more

    Declaration

    Objective-C

    @interface HBAppearanceSettings : NSObject

    Swift

    class HBAppearanceSettings : NSObject
  • Constants indicating how to size the title of this item.

    See more

    Declaration

    Objective-C

    enum HBAppearanceSettingsLargeTitleStyle : NSUInteger {}

    Swift

    enum LargeTitleStyle : UInt
  • The HBSupportController class in CepheiPrefs provides a factory that configures an email composer for package support.

    The resulting view controller should be presented modally; it should not be pushed on a navigation controller stack.

    See more

    Declaration

    Objective-C

    @interface HBSupportController : NSObject

    Swift

    class HBSupportController : NSObject