BFPaperCheckbox Class Reference

Inherits from UIControl
Conforms to UIGestureRecognizerDelegate
Declared in BFPaperCheckbox.h
BFPaperCheckbox.m

Other Methods

– touchDownAnimationDuration

(Go Steelers!) A CGFLoat representing the duration of the animations which take place on touch DOWN! Default is 0.25f seconds. Note that negative values will be converted to the default. NO FUNNY BUSINESS!

- (CGFloat)touchDownAnimationDuration

Discussion

(Go Steelers!) A CGFLoat representing the duration of the animations which take place on touch DOWN! Default is 0.25f seconds. Note that negative values will be converted to the default. NO FUNNY BUSINESS!

Declared In

BFPaperCheckbox.h

– touchUpAnimationDuration

A CGFLoat representing the duration of the animations which take place on touch UP! Default is 2 * touchDownAnimationDuration seconds. Note that negative values will be converted to the default. NO FUNNY BUSINESS!

- (CGFloat)touchUpAnimationDuration

Discussion

A CGFLoat representing the duration of the animations which take place on touch UP! Default is 2 * touchDownAnimationDuration seconds. Note that negative values will be converted to the default. NO FUNNY BUSINESS!

Declared In

BFPaperCheckbox.h

– burstAmount

The CGFloat value representing how much we should increase the diameter of the tap-circle by when we burst it. Default is 0 because we can’t see a burst with the default ‘.tapCircleDiameter’ which takes up the entire frame. If you want to see a burst, make the ‘.tapCircleDiameter’ something smaller than the diameter of the control itself. Note that negative values will be converted to the default. NO FUNNY BUSINESS!

- (CGFloat)burstAmount

Discussion

The CGFloat value representing how much we should increase the diameter of the tap-circle by when we burst it. Default is 0 because we can’t see a burst with the default ‘.tapCircleDiameter’ which takes up the entire frame. If you want to see a burst, make the ‘.tapCircleDiameter’ something smaller than the diameter of the control itself. Note that negative values will be converted to the default. NO FUNNY BUSINESS!

Declared In

BFPaperCheckbox.h

– checkmarkColor

A UIColor to use for the checkmark color. Note that ‘self.tintColor’ will be used for the square box color.

- (UIColor *)checkmarkColor

Discussion

A UIColor to use for the checkmark color. Note that ‘self.tintColor’ will be used for the square box color.

Declared In

BFPaperCheckbox.h

– negativeColor

The UIColor to use for the circle which appears where you tap to uncheck the box. Default value is calculated from the ‘.tintColor’ property. Set to nil to access default. Alpha values less than 1 are recommended.

- (UIColor *)negativeColor

Discussion

The UIColor to use for the circle which appears where you tap to uncheck the box. Default value is calculated from the ‘.tintColor’ property. Set to nil to access default. Alpha values less than 1 are recommended.

Declared In

BFPaperCheckbox.h

– positiveColor

The UIColor to use for the circle which appears where you tap to check the box. Default value is calculated from the ‘.checkmarkColor’ property. Set to nil to access default. Alpha values less than 1 are recommended.

- (UIColor *)positiveColor

Discussion

The UIColor to use for the circle which appears where you tap to check the box. Default value is calculated from the ‘.checkmarkColor’ property. Set to nil to access default. Alpha values less than 1 are recommended.

Declared In

BFPaperCheckbox.h

– switchStatesAnimated:

Use this function to manually/programmatically switch the state of this checkbox.

- (void)switchStatesAnimated:(BOOL)animated

Parameters

animated

A BOOL flag to choose whether or not to animate the change.

Discussion

Use this function to manually/programmatically switch the state of this checkbox.

Declared In

BFPaperCheckbox.h

– checkAnimated:

Use this function to manually check the checkbox. Does nothing if already checked.

- (void)checkAnimated:(BOOL)animated

Parameters

animated

A BOOL flag to choose whether or not to animate the change.

Discussion

Use this function to manually check the checkbox. Does nothing if already checked.

Declared In

BFPaperCheckbox.h

– uncheckAnimated:

Use this function to manually uncheck the checkbox. Does nothing if already unchecked.

- (void)uncheckAnimated:(BOOL)animated

Parameters

animated

A BOOL flag to choose whether or not to animate the change.

Discussion

Use this function to manually uncheck the checkbox. Does nothing if already unchecked.

Declared In

BFPaperCheckbox.h

Other Methods

  rippleFromTapLocation

A flag to set to YES to have the tap-circle ripple from point of touch. If this is set to NO, the tap-circle will always ripple from the center of the button. Default is NO.

@property IBInspectable BOOL rippleFromTapLocation

Discussion

A flag to set to YES to have the tap-circle ripple from point of touch. If this is set to NO, the tap-circle will always ripple from the center of the button. Default is NO.

Declared In

BFPaperCheckbox.h

  cornerRadius

The CGFloat value representing the corner radius of the control. Default value is (bfPaperCheckboxDefaultDiameter / 2). Note that negative values will be converted to 0. NO FUNNY BUSINESS!

@property (nonatomic) IBInspectable CGFloat cornerRadius

Discussion

The CGFloat value representing the corner radius of the control. Default value is (bfPaperCheckboxDefaultDiameter / 2). Note that negative values will be converted to 0. NO FUNNY BUSINESS!

Declared In

BFPaperCheckbox.h

  startDiameter

A CGFLoat representing the diameter of the tap-circle as soon as it spawns, before it grows. Default is 1.f. Note that negative values and values less than 1 will be converted to the default. NO FUNNY BUSINESS!

@property IBInspectable CGFloat startDiameter

Discussion

A CGFLoat representing the diameter of the tap-circle as soon as it spawns, before it grows. Default is 1.f. Note that negative values and values less than 1 will be converted to the default. NO FUNNY BUSINESS!

Declared In

BFPaperCheckbox.h

  endDiameter

The CGFloat value representing the Diameter of the tap-circle. By default it will take up the entire checkbox background circle. Note that zero and negative values will be converted to the default. NO FUNNY BUSINESS!

@property IBInspectable CGFloat endDiameter

Discussion

The CGFloat value representing the Diameter of the tap-circle. By default it will take up the entire checkbox background circle. Note that zero and negative values will be converted to the default. NO FUNNY BUSINESS!

Declared In

BFPaperCheckbox.h

  isChecked

A BOOL representing the state of the checkbox. YES means checked, NO means unchecked. *

@property (nonatomic, readonly) BOOL isChecked

Discussion

A BOOL representing the state of the checkbox. YES means checked, NO means unchecked. *

Declared In

BFPaperCheckbox.h

  delegate

A delegate to use our protocol with!

@property (weak) id<BFPaperCheckboxDelegate> delegate

Discussion

A delegate to use our protocol with!

Declared In

BFPaperCheckbox.h