AKFTheme
有此級別的更新版本。前往查看 最新版本。

A theme for the Account Kit UI

Conforms to:NSCopying
Superclass:NSObject
Declared in:AKFTheme.h
類別方式
defaultTheme

Returns the default theme.

+ (instancetype) defaultTheme;
Discussion:

This theme can be used as a starting point and then updated as desired.

宣告於: AKFTheme.h
outlineTheme

Returns a default theme that uses an outline style instead of filled in components.

+ (instancetype) outlineTheme;
宣告於: AKFTheme.h
outlineThemeWithPrimaryColor:primaryTextColor:secondaryTextColor:statusBarStyle:

Returns a theme that uses an outline style with simple color groups that will be applied to the theme.

參數說明
primaryColor

The color used for buttonBackgroundColor, buttonBorderColor, buttonDisabledBorderColor, buttonDisabledTextColor, buttonHighlightedBackgroundColor, buttonHighlightedBorderColor, headerBackgroundColor, iconColor, inputBorderColor

primaryTextColor

The color used for buttonHighlightedTextColor, buttonTextColor, headerTextColor.

secondaryTextColor

The color used for inputTextColor, textColor, titleColor.

statusBarStyle

The style to use for the status bar.

+ (instancetype)
outlineThemeWithPrimaryColor: (UIColor *)primaryColor
primaryTextColor: (UIColor *)primaryTextColor
secondaryTextColor: (UIColor *)secondaryTextColor
statusBarStyle: (UIStatusBarStyle)statusBarStyle;
宣告於: AKFTheme.h
themeWithPrimaryColor:primaryTextColor:secondaryColor:secondaryTextColor:statusBarStyle:

Returns a theme with simple color groups that will be applied to the theme.

參數說明
primaryColor

The color used for buttonBackgroundColor, buttonBorderColor, buttonHighlightedBackgroundColor, buttonHighlightedBorderColor, headerBackgroundColor, iconColor.

primaryTextColor

The color used for buttonHighlightedTextColor, buttonTextColor, headerTextColor.

secondaryColor

The color used for buttonDisabledBackgroundColor, buttonDisabledBorderColor, inputBackgroundColor, inputBorderColor.

secondaryTextColor

The color used for buttonDisabledTextColor, inputTextColor, textColor, titleColor.

statusBarStyle

The style to use for the status bar.

+ (instancetype)
themeWithPrimaryColor: (UIColor *)primaryColor
primaryTextColor: (UIColor *)primaryTextColor
secondaryColor: (UIColor *)secondaryColor
secondaryTextColor: (UIColor *)secondaryTextColor
statusBarStyle: (UIStatusBarStyle)statusBarStyle;
宣告於: AKFTheme.h
Typedefs
AKFHeaderTextType

The type of header text to use within the UI.

typedef NS_ENUM(NSUInteger, AKFHeaderTextType) {
AKFHeaderTextTypeLogin = 0, AKFHeaderTextTypeAppName,
};
宣告於: AKFTheme.h
NS_ENUM

The type of header text to use within the UI.

typedef NS_ENUM(NSUInteger, AKFHeaderTextType) {
AKFHeaderTextTypeLogin = 0, AKFHeaderTextTypeAppName,
};
宣告於: AKFTheme.h