具有顶部图片和底部标签的UIButton
ImageCenterButton是UIButton的一个子类。使用它,你可以很容易地创建一个有图像在上、文字标签在下的按钮。
// Round Image
@property(nonatomic) IBInspectable BOOL imageIsRound;
// Image Padding
@property(nonatomic) IBInspectable CGFloat padding;
// Spacing between imageview and textlabel
@property(nonatomic) IBInspectable CGFloat imageTextSpace;
// Maximum imageview size
@property(nonatomic) IBInspectable CGSize imageViewMaxSize;
// Button backgroundHighlighted
@property(nonatomic, strong) IBInspectable UIColor *backgroundHighlightedColor;
// Button backgroundNormal
@property(nonatomic, strong) IBInspectable UIColor *backgroundNormalColor;
// Border width
@property(nonatomic) IBInspectable CGFloat borderWidth;
// Border Color
@property(nonatomic, strong) IBInspectable UIColor *borderColor;
ImageCenterButton可以在MIT许可证下使用。有关更多信息,请参阅LICENSE文件。
ImageCenterButton 是UIButton的子类。它可以方便地创建有图像在上、文字标签在下的按钮。
// 是否将图像设置成圆形
@property(nonatomic) IBInspectable BOOL imageIsRound;
// 图像padding设置
@property(nonatomic) IBInspectable CGFloat padding;
// imageview和textlabel间距设置
@property(nonatomic) IBInspectable CGFloat imageTextSpace;
// imageview最大尺寸设置
@property(nonatomic) IBInspectable CGSize imageViewMaxSize;
// Button高亮状态背景色设置
@property(nonatomic, strong) IBInspectable UIColor *backgroundHighlightedColor;
// Button普通状态背景色设置
@property(nonatomic, strong) IBInspectable UIColor *backgroundNormalColor;
// 边框宽度设置
@property(nonatomic) IBInspectable CGFloat borderWidth;
// 边框颜色设置
@property(nonatomic, strong) IBInspectable UIColor *borderColor;
ImageCenterButton可在MIT协议下使用。有关更多信息,请查阅LICENSE文件。