forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectTagsView.h
More file actions
29 lines (23 loc) · 817 Bytes
/
ProjectTagsView.h
File metadata and controls
29 lines (23 loc) · 817 Bytes
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
//
// ProjectTagsView.h
// Coding_iOS
//
// Created by Ease on 15/7/17.
// Copyright (c) 2015年 Coding. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIView+PressMenu.h"
#import "ProjectTag.h"
@interface ProjectTagsView : UIView
@property (strong, nonatomic) NSArray *tags;
@property (nonatomic, copy) void (^deleteTagBlock)(ProjectTag *tag);
@property (nonatomic, copy) void (^addTagBlock)();
- (instancetype)initWithTags:(NSArray *)tags;
+ (instancetype)viewWithTags:(NSArray *)tags;
+ (CGFloat)getHeightForTags:(NSArray *)tags;
@end
@interface ProjectTagsViewLabel : UILabel
@property (strong, nonatomic) ProjectTag *curTag;
@property (nonatomic, copy) void (^deleteBlock)(ProjectTag *tag);
+ (instancetype)labelWithTag:(ProjectTag *)tag andDeleteBlock:(void (^)(ProjectTag *tag))block;
@end