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

Overview

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;

Tasks

  •   expanded

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

    property
  •   expandable

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

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

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

    property
  •   pressedBackgroundColor

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

    property
  • – collapse

    Invoke this method to collapse a section

  • – expand

    Invoke this method to expand a section

  • + gridView:cellForSectionHeader:

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

Properties

expandButton

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

@property (nonatomic, readonly) UIButton *expandButton

Declared In

IGGridViewCell.h

expandable

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

 Note: the datasource must support expansion for anything to actually occur.
@property (nonatomic, assign) BOOL expandable

Declared In

IGGridViewCell.h

expanded

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

@property (nonatomic, readonly) BOOL expanded

Declared In

IGGridViewCell.h

pressedBackgroundColor

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

@property (nonatomic, retain) UIColor *pressedBackgroundColor

Declared In

IGGridViewCell.h

Class Methods

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

Parameters

gridView

The IGGridView that the cell will be displayed in.

section

The index of the section that this cell will represent.

Declared In

IGGridViewCell.h

Instance Methods

collapse

Invoke this method to collapse a section

- (void)collapse

Declared In

IGGridViewCell.h

expand

Invoke this method to expand a section

- (void)expand

Discussion

Declared In

IGGridViewCell.h