-
Notifications
You must be signed in to change notification settings - Fork 0
/
TagsView.h
47 lines (36 loc) · 1.16 KB
/
TagsView.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
//
// TagsView.h
// GlucoMe - Mobile
//
// Created by dovi winberger on 5/31/15.
// Updated by Dror Zohar on 28/05/17.
// Copyright (c) 2015 Yiftah Ben Aharon. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TagsView;
@protocol TagsViewDelegateProtocol <NSObject>
-(void)tagSelectionChanged:(TagsView*)tagsView;
@optional
-(NSString*)iconForTag:(long)tagId;
-(NSString*)labelForTag:(long)tagId;
@end
@interface TagsView : UIView
{
NSMutableSet* activeTags;
}
@property (weak, nonatomic) IBOutlet UIView *notTaggesSection;
@property (weak, nonatomic) id<TagsViewDelegateProtocol> delegate;
@property (nonatomic) BOOL singleSelection;
//set before setFrame
@property (nonatomic) BOOL showNotTagged;
@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray* backgroundImageView;
@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray* iconImageView;
@property (strong, nonatomic) IBOutletCollection(UILabel) NSArray* titleLabel;
- (IBAction)TagClicked:(UIButton*)sender;
-(void)SetActiveTags:(NSArray*)tags;
-(void)ActivateAllTags;
-(void)DeactivateAllTags;
-(NSArray*)GetSelectedTags;
-(BOOL)IsAllTagsSelected;
-(BOOL)IsNoneSelected;
@end