SLButtonIsDifferentFromUIButton.h
#import <UIKit/UIKit.h>
typedef enum {
SLButtonTypeButtonWhoesTitleIsUnderImage = 0,
SLButtonTypeButtonWhoesTitleIsOverImage,
SLButtonTypeButtonWhoesTitleIsLeftImage,
} SLButtonType;
@interface SLButtonIsDifferentFromUIButton : UIButton
+ (instancetype)SLButtonWithType:(SLButtonType)SLButtonType;
+ (instancetype)buttonWithType:(SLButtonType)SLButtonType;
@end
#To use SLButton, you can design button like this:



