YMAButtonAppearance Class Reference

Inherits from NSObject
Conforms to NSCopying
NSMutableCopying
Declared in YMANativeAssetsAppearance.h

Overview

A class with fixed settings for the standard button appearance.

If you want to edit the standard appearance settings, use the YMAMutableNativeTemplateAppearance class.

  1. Properties
    1. textAppearance
    2. highlightedTextColor
    3. normalColor
    4. highlightedColor
    5. borderColor
    6. borderWidth
  2. Methods
    1. + appearanceWithTextAppearance:normalColor:highlightedColor:borderColor:borderWidth:
    2. + appearanceWithTextAppearance:highlightedTextColor:normalColor:highlightedColor:borderColor:borderWidth:

Properties

textAppearance

Settings for the button label (YMALabelAppearance).

@property (nonatomic, copy, readonly) YMALabelAppearance *textAppearance

highlightedTextColor

Label color when the button is clicked.

@property (nonatomic, strong, readonly) UIColor *highlightedTextColor

normalColor

The color of the button background in its normal state.

@property (nonatomic, strong, readonly) UIColor *normalColor

highlightedColor

The color of the button background when clicked.

@property (nonatomic, strong, readonly) UIColor *highlightedColor

borderColor

The color of the button border.

@property (nonatomic, strong, readonly) UIColor *borderColor

borderWidth

The width of the button border.

@property (nonatomic, assign, readonly) CGFloat borderWidth

Methods

+ appearanceWithTextAppearance:normalColor:highlightedColor:borderColor:borderWidth:

Creates an object of the YMAButtonAppearance class, i.e., a button with the specified appearance (label font, label color, border color, and other settings).

+ (instancetype)appearanceWithTextAppearance:(YMALabelAppearance *)textAppearance
                                 normalColor:(UIColor *)normalColor
                            highlightedColor:(UIColor *)highlightedColor
                                 borderColor:(UIColor *)borderColor
                                 borderWidth:(CGFloat)borderWidth

Parameters

textAppearance

Settings for the button label (YMALabelAppearance).

normalColor

The color of the button background in its normal state.

highlightedColor

The color of the button background when clicked.

borderColor

The color of the button border.

borderWidth

The width of the button border.

Return Value

Configured button appearance.

+ appearanceWithTextAppearance:highlightedTextColor:normalColor:highlightedColor:borderColor:borderWidth:

Creates an object of the YMAButtonAppearance class, i.e., a button with the specified appearance (label font, label color, border color, and other settings).

+ (instancetype)appearanceWithTextAppearance:(YMALabelAppearance *)textAppearance
                        highlightedTextColor:(UIColor *)highlightedTextColor
                                 normalColor:(UIColor *)normalColor
                            highlightedColor:(UIColor *)highlightedColor
                                 borderColor:(UIColor *)borderColor
                                 borderWidth:(CGFloat)borderWidth

Parameters

textAppearance

Settings for the button label (YMALabelAppearance).

highlightedTextColor

Label color when the button is clicked.

normalColor

The color of the button background in its normal state.

highlightedColor

The color of the button background when clicked.

borderColor

The color of the button border.

borderWidth

The width of the button border.

Return Value

Configured button appearance.


Generated by appledoc 2.2.1 (build 1334).