Skip to content

Commit c843ac4

Browse files
committed
Updated README.
1 parent 91657c7 commit c843ac4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
FZAccordionTableView transforms your regular UITableView into an accordion table view. The table view section headers are used as tappable areas to collapse rows - just tap a section header, and all of the rows under that section will open below the header and viceversa.
55

6-
The module is made to be very easy to use and no modifications are necessary to achieve the default behaviour. The table view and the section header has to subclass the classes in this module.
6+
The module is made to be very easy to use and no modifications are necessary to achieve the default behaviour. Just build a table view with cells and section headers and subclass the classes in this module.
77

88
### FZAccordionTableView Class:
99

@@ -12,37 +12,37 @@ The module is made to be very easy to use and no modifications are necessary to
1212

1313
@property (nonatomic) BOOL allowMultipleSectionsOpen;
1414
@property (nonatomic) BOOL keepOneSectionOpen;
15-
@property (strong, nonatomic) NSSet *initialOpenSections;
16-
@property (strong, nonatomic) NSSet *sectionsAlwaysOpen;
15+
@property (strong, nonatomic, nullable) NSSet <NSNumber *> *initialOpenSections;
1716
@property (nonatomic) BOOL enableAnimationFix;
1817

1918
- (BOOL)isSectionOpen:(NSInteger)section;
2019
- (void)toggleSection:(NSInteger)section;
20+
- (NSInteger)sectionForHeaderView:(UITableViewHeaderFooterView *)headerView;
2121

2222
@end
2323
~~~
2424
25+
### FZAccordionTableViewHeaderView Class:
26+
~~~objective-c
27+
@interface FZAccordionTableViewHeaderView : UITableViewHeaderFooterView
28+
@end
29+
~~~
30+
2531
### FZAccordionTableViewDelegate Protocol:
2632
~~~objective-c
2733
@protocol FZAccordionTableViewDelegate <NSObject>
2834

35+
- (BOOL)tableView:(FZAccordionTableView *)tableView canInteractWithHeaderAtSection:(NSInteger)section;
36+
2937
- (void)tableView:(FZAccordionTableView *)tableView willOpenSection:(NSInteger)section withHeader:(UITableViewHeaderFooterView *)header;
3038
- (void)tableView:(FZAccordionTableView *)tableView didOpenSection:(NSInteger)section withHeader:(UITableViewHeaderFooterView *)header;
39+
-
3140
- (void)tableView:(FZAccordionTableView *)tableView willCloseSection:(NSInteger)section withHeader:(UITableViewHeaderFooterView *)header;
3241
- (void)tableView:(FZAccordionTableView *)tableView didCloseSection:(NSInteger)section withHeader:(UITableViewHeaderFooterView *)header;
3342

3443
@end
3544
~~~
3645
37-
### FZAccordionTableViewHeaderView Class:
38-
~~~objective-c
39-
@interface FZAccordionTableViewHeaderView : UITableViewHeaderFooterView
40-
41-
@property (nonatomic, readonly) NSInteger section;
42-
43-
@end
44-
~~~
45-
4646
## How To Use?
4747
### Steps:
4848

0 commit comments

Comments
 (0)