IGFlowLayoutViewCell Class Reference

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.

Initializing a Cell object

– initWithReuseIdentifier:

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

- (instancetype)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

  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

  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, nullable) 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

– cellDetached

Notifies the cell, that it is currently not being used by the flowLayout view

- (void)cellDetached

Discussion

This method should not be called directly. It’s for use in a derived class to do any cleanup that might be neccessary when the cell is not currently being used.

Declared In

IGFlowLayoutViewCell.h

– cellAttached

Notifies the cell that the flowLayout view has just started using it.

- (void)cellAttached

Discussion

This method should not be called directly. It’s for use in a derived class to setup anything that is neccessary for it to display its content

Declared In

IGFlowLayoutViewCell.h

– cellWillDetach

Notifies the cell, that it is about to be detached, this occurs before the cell loses its frame.

- (void)cellWillDetach

Discussion

This method should not be called directly. It’s for use in a derived class to do any cleanup that might be neccessary when the cell is not currently being used.

Declared In

IGFlowLayoutViewCell.h

– cellWillAttach

Notifies the cell that the flowLayout view will start using it, this occurs before the cell sets its frame.

- (void)cellWillAttach

Discussion

This method should not be called directly. It’s for use in a derived class to setup anything that is neccessary for it to display its content

Declared In

IGFlowLayoutViewCell.h