Skip to content

lujianrong/HelpToolKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LJRButton

typedef NS_ENUM(NSUInteger, LJRButtonType) {
LJRButtonTypeImgAtMostRight,        //文字最左, 图片最右边
LJRButtonTypeImgAtMostLeft,         //图片在最左边 文字在最右边
LJRButtonTypeImgAtCenterLeft,       //文字图片居中 而且图片在左边
LJRButtonTypeImgAtCenterRight,      //文字图片居中 而且图片在右边
LJRButtonTypeImgAtTop,              //图片在上 文字在下
LJRButtonTypeImgAtBottom            //图片在下 文字在上
};

@interface LJRButton : UIButton

+ (instancetype)btnWithType:(LJRButtonType)type 
                      frame:(CGRect)frame 
                normalImage:(nullable NSString *)normalImage
                     target:(id)target 
                     action:(SEL)action 
                      title:(nullable NSString *)title;

About

有多种自定义按钮

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors