forked from bitcartel/QuickDialog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QSelectSection.h
40 lines (28 loc) · 1.21 KB
/
QSelectSection.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
//
// QSelectSection.h
// QuickDialog
//
// Created by HiveHicks on 23.03.12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "QSection.h"
#import "QDynamicDataSection.h"
@interface QSelectSection : QDynamicDataSection
{
NSMutableArray *_items;
}
@property(nonatomic, strong) NSArray *items;
@property (nonatomic, strong) NSMutableArray *selectedIndexes;
@property (nonatomic, readonly) NSArray *selectedItems;
@property (nonatomic) BOOL multipleAllowed;
@property(nonatomic, copy) void (^onSelected)(void);
@property(nonatomic) BOOL deselectAllowed;
- (id)initWithItems:(NSArray *)stringArray selectedIndexes:(NSArray *)selected;
- (id)initWithItems:(NSArray *)stringArray selectedIndexes:(NSArray *)selected title:(NSString *)title;
- (id)initWithItems:(NSArray *)stringArray selectedItems:(NSArray *)selectedItems title:(NSString *)title;
- (id)initWithItems:(NSArray *)stringArray selected:(NSUInteger)selected;
- (id)initWithItems:(NSArray *)stringArray selected:(NSUInteger)selected title:(NSString *)title;
- (void)addOption:(NSString *)option;
- (void)insertOption:(NSString *)option atIndex:(NSUInteger)index;
- (void)createElements;
@end