| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // customButton.h
- // 项目-iWeiBo
- //
- // Created by student on 14-9-16.
- // Copyright (c) 2014年 student. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef enum{
- ImagePostionNoImage = 0,
- ImagePostionLeft,
- ImagePostionRight,
- ImagePostionTop,
- ImagePostionBottom,
- ImagePostionDefault,
- ImagePostionCustom
-
-
- }ImagePostion;
- typedef enum{
- //比例
- LayoutTypeRatio,
- //间距
- LayoutTypeMargin
-
-
- }LayoutType;
- @interface CustomButton : UIButton
- - (id)initCustomBtnWithImageDirection:(ImagePostion)imagePosition imageViewSize:(CGSize)imageSize imageLabelMargin:(CGFloat)imageLabelMargin titleLabelFont:(UIFont *)titleLabelFont imageIcon:(NSString *)imageIcon selectIcon:(NSString *)selectIcon title:(NSString *)title btnWidth:(CGFloat)btnWidth;
- //readonly
- @property (nonatomic , assign) CGFloat customBtnHeight;
- @property (nonatomic , assign) CGFloat imageToTextRatioFloat;
- @property (nonatomic , assign)LayoutType layoutType;
- @property (nonatomic, assign)ImagePostion imagePostion;
- @property (nonatomic , assign) CGSize imageSize;
- @property (nonatomic , strong) UIFont *titleLabelFont;
- @property (nonatomic , assign) CGFloat imageLabelMargin;
- @property (nonatomic, assign)BOOL isClickCycle;
- @property (nonatomic, assign)CGRect imageFrame;
- #warning 2016-12-19 新增, 唯一标识符
- @property (nonatomic , copy) NSString *uuid;
- @end
|