a subclass of UIButton, which support to custom layout button' image view and title label.
- image view top, title label bottom
- image view bottom, title label top
- image view left, title label right
- image view right, title label left
- drag source file into your project
- use Cocoapods pod 'JHBLayoutableButton', '~> 0.0.2'
import UIButton+JHBLayoutableButton.h file
UIButton *button = [UIButton buttonWithLayoutStyle:JHBLayoutableButtonStyleIRTL spaceBetweenImageAndTitle:3.0];
- iOS 7.0 or later
MIT