Inherits from UIButton
Declared in BFButton.h

Overview

This class adds some useful methods to UIButton that cannot be in a category

Tasks

Instance Methods

initWithFrame:image:highlightedImage:fadeDuration:

- (instancetype _Nonnull)initWithFrame:(CGRect)frame image:(UIImage *_Nonnull)image highlightedImage:(UIImage *_Nonnull)highlightedImage fadeDuration:(CGFloat)fadeDuration
Discussion

Create an UIButton with a fade animation from image to highlightedImage on touch

Parameters

frame

Button’s frame

image

Button’s image

highlightedImage

Button’s highlighted image

fadeDuration

Fade duration

Return Value

Returns the created BFButton, subclass of UIButton

Declared In

BFButton.h