RBButton Class Reference

Inherits from UIButton
Declared in RBButton.h

Overview

A UIButton with additional appearance options.

  minimumSelectionAreaSizeFromCenter

The minimum size of the area from the center of the button that will accept touches.

@property (nonatomic) CGSize minimumSelectionAreaSizeFromCenter

Declared In

RBButton.h

  orientation

Whether or not the image and title should be vertically or horizontally arranged. Default = RBOrientationHorizontal.

@property (nonatomic) RBOrientation orientation

Declared In

RBButton.h

  titleFirst

Whether or not the title should be before the image. Default = NO.

@property (nonatomic) BOOL titleFirst

Declared In

RBButton.h

  spacing

The spacing to use between the label and the image. This has the effect of increasing the size of the button in the direction set via the orientation property. Default = 0.

@property (nonatomic) CGFloat spacing

Declared In

RBButton.h

– applyTitle:

Apply the title for UIControlStateNormal.

- (void)applyTitle:(NSString *)title

Parameters

title

The title of the button.

Declared In

RBButton.h

– applyImage:

Apply the image for UIControlStateNormal.

- (void)applyImage:(UIImage *)image

Parameters

image

The image of the button.

Declared In

RBButton.h