IGGridViewSectionHeaderCell Class Reference

Inherits from IGGridViewSectionCell : IGGridViewCellBase : UIView
Declared in IGGridViewCell.h


IGGridViewSectionHeaderCell is the visual used to diplay cells for section headers in the IGGridView.

The main display element of an IGGridViewCell is the textLabel which can be used to display text for the cell.

There is also a UIButton which is used when the cell is marked as expandable, so the user can interact by click the section header to expand or colapse.

To place other visuals in the header of a secion, you can use the IGGridViewDelegate’s -(UIView)gridView:(IGGridView)gridView viewForSectionHeader:(int)section;


Determines if the section is currently expanded or collapsed (readOnly)

@property (nonatomic, readonly) BOOL expanded

Declared In



When set to YES, the section header can be clicked to toggle expansion the section.

@property (nonatomic, assign) BOOL expandable


Note: the datasource must support expansion for anything to actually occur.

Declared In



The UIButton in the section header that is used for toggling expansion

@property (nonatomic, readonly) UIButton *expandButton

Declared In



A UIColor that determines the pressed color used when the expandButton is in it’s pressed state.

@property (nonatomic, retain) UIColor *pressedBackgroundColor

Declared In


– collapse

Invoke this method to collapse a section

- (void)collapse

Declared In


– expand

Invoke this method to expand a section

- (void)expand

Declared In


+ gridView:cellForSectionHeader:

Helper method for creating a IGGridViewSectionHeaderCell. Also sets the theme information and calls the appropriate delegate/datasource methods.

+ (IGGridViewSectionHeaderCell *)gridView:(IGGridView *)gridView cellForSectionHeader:(NSInteger)section



The IGGridView that the cell will be displayed in.


The index of the section that this cell will represent.

Declared In