一个简单实用的标签排列控件
##Usage LXTagView *tagView = [[LXTagView alloc]init];
tagView.delegate = self;
tagView.tagMargin = 15;
tagView.tagPadding = 20;
//when you set all propery, and then set dataArray, not need set 'frame', it will auto caculate.
tagView.dataArray = dataArray;
[self.view addSubview:tagView];
##selectedResult ####- (void)LXTagViewWithSelectedArray:(NSMutableArray *)selectedArray WithSelectedTag:(UIButton *)selectedTag
##property //tag height. default 30.
@property (nonatomic, assign) CGFloat tagHeight;
//tag font. default systemFont 12.
@property (nonatomic, strong) UIFont *tagFont;
//tag backgroundColor. default white.
@property (nonatomic, strong) UIColor *tagBackgroundColor;
//tag selected backgroundColor. default black.
@property (nonatomic, strong) UIColor *tagSelectedBackgroundColor;
//tag selected textColor. default white.
@property (nonatomic, strong) UIColor *tagSelectedTextColor;
//tag textColor. default black.
@property (nonatomic, strong) UIColor *tagTextColor;
//tag borderWidth. default 1.
@property (nonatomic, assign) CGFloat tagBorderWidth;
//tag borderColor. default black.
@property (nonatomic, strong) UIColor *tagBorderColor;
//tag padding. default 10.
@property (nonatomic, assign) CGFloat tagPadding;
//tag Vertical margin. default 10.
@property (nonatomic, assign) CGFloat tagVerticalMargin;
//tag Horizontal margin. default equal Vertical margin.
@property (nonatomic, assign) CGFloat tagHorizontalMargin;
//left space. default 15.
@property (nonatomic, assign) CGFloat leftSpace;
//right space. default equal left.
@property (nonatomic, assign) CGFloat rightSpace;
//top space. default equal left.
@property (nonatomic, assign) CGFloat topSpace;
//top space. default equal left.
@property (nonatomic, assign) CGFloat bottomSpace;
//tag cornerRadius. default 0.
@property (nonatomic, assign) CGFloat tagCornerRadius;
//is tag only support click not selected. default true.
@property (nonatomic, assign) BOOL isTagSelected;
//dataSource.
@property (nonatomic, strong) NSArray *dataArray;
###如有特殊需求可以直接修改源码, 实现方式很简单.有疑问或者发现bug请issue我或者给我发邮件, 谢谢. ####目前只是简单的for循环实现, 未来会用collectionView进行复写.