Skip to content

Commit

Permalink
added section count
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyOT committed May 3, 2013
1 parent 3588ccd commit e462990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions SlideMenu/SlideMenu.h
Expand Up @@ -20,6 +20,7 @@

-(UIView*)headerForSection:(NSInteger)section;
-(SlideMenuItem*)itemAtIndexPath:(NSIndexPath*)indexPath;
-(NSInteger)sectionCount;

-(void)addSectionWithName:(NSString*)name items:(NSArray*)items;
-(void)addSectionWithName:(NSString*)name items:(NSArray*)items headerColor:(UIColor*)color;
Expand Down
4 changes: 4 additions & 0 deletions SlideMenu/SlideMenu.m
Expand Up @@ -74,6 +74,10 @@ -(SlideMenuItem *)itemAtIndexPath:(NSIndexPath *)indexPath {
return [[_sections objectAtIndex:indexPath.section] objectAtIndex:indexPath.row];
}

-(NSInteger)sectionCount {
return [_sections count];
}

#pragma mark - Adding Items

-(UIView*)defaultHeaderForSectionName:(NSString*)name color:(UIColor*)color {
Expand Down

0 comments on commit e462990

Please sign in to comment.