IGGridViewCell Class Reference

Inherits from IGGridViewCellBase : UIView
Declared in IGGridViewCell.h

Overview

IGGridViewCell is the base class for all display cells in the IGGridView. It’s a visual that maps to a coordinate system (IGCellPath) of Section, Row and Column.

Thie IGGridViewCell can be selected, and you can control the selection appearance for a cell using it’s selectedView and selectedColor properties.

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

Display

  textLabel

Returns the label used for the main textual content of the grid cell.

@property (nonatomic, readonly, retain) UILabel *textLabel

Discussion

You can use this property to change styling options such as text color and text alignment

Declared In

IGGridViewCell.h

Selection

  selectedView

A view that will be displayed on top of the cell, when it is selected.

@property (nonatomic, retain, nullable) UIView *selectedView

Discussion

The view provided will be sized to the frame of the cell.

Declared In

IGGridViewCell.h

  selectedColor

A color that will be used as the background color of the cell when it is selected.

@property (nonatomic, retain) UIColor *selectedColor

Discussion

If you would like no background color, you can set this property to clearColor.

Declared In

IGGridViewCell.h

  isSelected

Returns whether the current cell is selected

@property (nonatomic, readonly) BOOL isSelected

Declared In

IGGridViewCell.h

  selectionGesture

Returns the gesture used for selection.

@property (nonatomic, readonly) UIGestureRecognizer *selectionGesture

Declared In

IGGridViewCell.h

– updateSelected

This method gets invoked everytime a cell is selected, or when a cell comes back into view that was selected.

- (void)updateSelected

Discussion

If you want a custom way to make your cell look when its selected. This is the place to do it.

Declared In

IGGridViewCell.h

– updateNotSelected

This method gets invoked everytime a cell is unselected, or when a cell comes back into view that was not selected.

- (void)updateNotSelected

Discussion

If you want a custom way to make your cell look when its selected. This is the place to do it.

Declared In

IGGridViewCell.h