Inherits from UIView
Declared in IGFlowLayoutViewCell.h

Overview

The visible representation of an item in the IGFlowLayoutView. Only items currently wihtin the viewport will have a cell, and all cell’s should be reused via the flowLayoutView’s dequeueReusableCellWithIdentifier: method along with the cell’s initWithReuseIdentifier: initializer.

Tasks

Initializing a Cell object

  • – initWithReuseIdentifier:

    Initializes and returns a cell object with the specified reuse identifier.

  •   reuseIdentifier

    A string which is used by the grid view to determine reuse via an internal recycling engine (readonly)

    property
  •   contentInset

    The UIEdgeInsets around the contentView of the cell

    property
  •   contentView

    The UIView that will be displayed in a particular cell. Simply set this property to the view you want to be displayed, and the cell will autmatically set it’s frame to be the size of the cell.

    property
  •   index

    The index of the item that this cell currently represents. (readonly)

    property

Properties

contentInset

The UIEdgeInsets around the contentView of the cell

@property (nonatomic, assign) UIEdgeInsets contentInset

Discussion

Use this property to create spacing between item’s in the flowLayoutView.

Declared In

IGFlowLayoutViewCell.h

contentView

The UIView that will be displayed in a particular cell. Simply set this property to the view you want to be displayed, and the cell will autmatically set it’s frame to be the size of the cell.

@property (nonatomic, retain) UIView *contentView

Declared In

IGFlowLayoutViewCell.h

index

The index of the item that this cell currently represents. (readonly)

@property (nonatomic, readonly) NSInteger index

Declared In

IGFlowLayoutViewCell.h

reuseIdentifier

A string which is used by the grid view to determine reuse via an internal recycling engine (readonly)

@property (nonatomic, readonly, copy) NSString *reuseIdentifier

Discussion

This property can only be set when the cell is initialized via the initWithReuseIdentifier: selector.

Declared In

IGFlowLayoutViewCell.h

Instance Methods

initWithReuseIdentifier:

Initializes and returns a cell object with the specified reuse identifier.

- (id)initWithReuseIdentifier:(NSString *)identifier

Parameters

identifier

A string which specifies the identifier used for recycling.

Return Value

Returns an initialized IGGridViewCellBase object or nil if the object could not be successfully initialized.

Discussion

You must specify the reuse identifier of a cell when you create it and you cannot thereafter modify it.

Declared In

IGFlowLayoutViewCell.h