-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLRetractableSectionHeaderView.h
executable file
·46 lines (30 loc) · 1.18 KB
/
CLRetractableSectionHeaderView.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
//
// CLRetractableSectionHeaderView.h
// CLRetractableSection
//
// Created by Emil Wojtaszek on 11-05-10.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol SectionHeaderViewDelegate;
@interface CLRetractableSectionHeaderView : UIView {
}
@property (nonatomic, assign) id <SectionHeaderViewDelegate> delegate;
@property (nonatomic, assign) BOOL isOpened;
@property (nonatomic, assign) NSInteger section;
@property (nonatomic, retain) UILabel *titleLabel;
- (id)initWithFrame:(CGRect)frame
section:(NSInteger)sectionNumber;
- (id)initWithFrame:(CGRect)frame
title:(NSString*)title
section:(NSInteger)sectionNumber;
- (void)toggleOpenWithUserAction:(BOOL)userAction;
@end
/*
Protocol to be adopted by the section header's delegate; the section header tells its delegate when the section should be opened and closed.
*/
@protocol SectionHeaderViewDelegate <NSObject>
@optional
- (void)sectionHeaderView:(CLRetractableSectionHeaderView*)sectionHeaderView sectionOpened:(NSInteger)section;
- (void)sectionHeaderView:(CLRetractableSectionHeaderView*)sectionHeaderView sectionClosed:(NSInteger)section;
@end