BTNInteractiveButton Class Reference

Inherits from UIView
Declared in BTNInteractiveButton.h

Rendering an App Action

– prepareWithAppAction:

Tells the button to render the passed app action.

- (void)prepareWithAppAction:(BTNAppAction *)appAction

Discussion

Tells the button to render the passed app action.

Note: passing nil will return the button to the loading state.

Declared In

BTNInteractiveButton.h

Appearance

  iconSize

Adjusts the width and height of the icon (default: 16.0).

@property (nonatomic, assign) CGFloat iconSize

Discussion

Adjusts the width and height of the icon (default: 16.0).

Note: The icon is 1:1 so the value set here applies to both dimensions.

Declared In

BTNInteractiveButton.h

  iconLeftPadding

Adjusts space between the left edge of the button and the icon (default: 15.0).

@property (nonatomic, assign) CGFloat iconLeftPadding

Discussion

Adjusts space between the left edge of the button and the icon (default: 15.0).

Declared In

BTNInteractiveButton.h

  iconLabelSpacing

Adjusts the spacing between the icon the text label (default: 8.0).

@property (nonatomic, assign) CGFloat iconLabelSpacing

Discussion

Adjusts the spacing between the icon the text label (default: 8.0).

Declared In

BTNInteractiveButton.h

  inventoryLeftPadding

Adjusts the left resting position of the first inventory item (default: 15.0).

@property (nonatomic, assign) CGFloat inventoryLeftPadding

Discussion

Adjusts the left resting position of the first inventory item (default: 15.0).

Declared In

BTNInteractiveButton.h

  fontName

The font face name used for all text (default: System font).

@property (nonatomic, copy) NSString *fontName

Discussion

The font face name used for all text (default: System font).

Note: If the font name is not correct, the system font will be used.

See Also

  • [UIFont familyNames] and [UIFont fontNamesForFamilyName:] to find the correct font name.

Declared In

BTNInteractiveButton.h

  relativeFontPointSize

Adjusts the point size of all text up or down relative to the current point size.

@property (nonatomic, assign) NSInteger relativeFontPointSize

Discussion

Adjusts the point size of all text up or down relative to the current point size.

Some fonts may be a bit larger or smaller than the system font. This property provides a way to make slight adjustments to the point size to accomodate such cases. It is not intended to be used for large changes in either direction and doing so may have unexpected results.

Declared In

BTNInteractiveButton.h