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_appearanceSettingsproperty 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:
See more- (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; }Declaration
Objective-C
@interface HBAppearanceSettings : NSObjectSwift
class HBAppearanceSettings : NSObject -
Constants indicating how to size the title of this item.
See moreDeclaration
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 moreDeclaration
Objective-C
@interface HBSupportController : NSObjectSwift
class HBSupportController : NSObject
View on GitHub
Install in Dash
CepheiPrefs — General Reference