-
Notifications
You must be signed in to change notification settings - Fork 0
/
UIView+WRBQuickControl.h
52 lines (42 loc) · 1.9 KB
/
UIView+WRBQuickControl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// UIView+WRBQuickControl.h
// AVAudioPlayerDemo
//
// Created by qianfeng on 15/9/14.
// Copyright (c) 2015年 quiet. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WRBButton.h"
@interface UIView (WRBQuickControl)
//创建系统按钮
-(UIButton *)addSystemButtonWithFrame:(CGRect)frame
title:(NSString *)titile
action:(void(^)(WRBButton *button))action;
+(UIButton *)systemButtonWithFrame:(CGRect)frame
title:(NSString *)titile
action:(void(^)(WRBButton *button))action;
//创建图片按钮
-(UIButton *)addImageButtonWithFrame:(CGRect)frame
title:(NSString *)titile
image:(NSString *)image
backgroundImage:(NSString *)backgroundImage
action:(void(^)(WRBButton *button))action;
+(UIButton *)imageButtonWithFrame:(CGRect)frame
title:(NSString *)titile
image:(NSString *)image
backgroundImage:(NSString *)backgroundImage
action:(void(^)(WRBButton *button))action;
//创建label
-(UILabel *)addLabelWithFrame:(CGRect)frame
title:(NSString *)title;
//创建imageView
-(UIImageView *)addImageViewWithFrame:(CGRect)frame
image:(NSString *)image;
//创建textfiled
-(UITextField *)addTextFieldWithFrame:(CGRect)frame
placeholder:(NSString *)holder
borderStyle:(UITextBorderStyle)style
delegate:(id)delegate;
/** 创建左边图片,中间文字,输入框的控件,类似于微信的输入框 */
-(id)addInputTextFieldWithFrame:(CGRect)frame andBackgroundImage:(NSString *)backImage andImage:(NSString *)image andMessage:(NSString *)message;
@end