doc
 All Classes Functions Variables Properties
Public Member Functions | Protected Attributes | Properties
EMBarrelView Class Reference

List of all members.

Public Member Functions

(id) - initWithFrame:gridViewInset:
(id) - initWithFrame:gridViewSize:

Protected Attributes

EMGridView_gridView
TTPageControl * _pageControl
UIEdgeInsets _gridViewInset
CGSize _pageSize
BOOL _showPageControl
id< EMBarrelViewDelegate_delegate

Properties

EMGridViewgridView
TTPageControl * pageControl
UIEdgeInsets gridViewInset
CGSize gridViewSize
NSInteger numberOfPages
NSInteger currentPage
BOOL showPageControl
id< EMBarrelViewDelegatedelegate
BOOL scrollEnabled

Property Documentation

- (id<EMBarrelViewDelegate>) delegate [read, write, assign]

This allows a delegate to listen to scroll events, reporting an offset for each visible cell in the grid view. If this value is non-nil, the delegate's required method barrelView:willScrollCell:withOffset: must be implemented

- (UIEdgeInsets) gridViewInset [read, write, assign]

The amount to inset the gridView from the BarrelView's frame

This sizes the EMGridView inside the barrel view, with the given margins. Ensures proper resizing by giving the grid view flexible height and width (fixed margins).

Use either this or gridViewSize, but not both.

- (CGSize) gridViewSize [read, write, assign]

The size of the grid view.

This centers the EMGridView inside the barrel view, with the given size. Ensures proper resizing by giving the grid view flexible margins (fixed height and width).

Use either this or gridViewInset, but not both.

- (NSInteger) numberOfPages [read, write, assign]

Using this as a setter ensures that both pageControl.numberOfPages and [gridView setMaxTiles:] are called. It will also ensure that the TTPageControl is hidden if there is only one page. The getter returns pageControl.numberOfPages.

- (TTPageControl *) pageControl [read, assign]

See showPageControl

- (BOOL) scrollEnabled [read, write, assign]

Setting this will disable scroll interaction, but will still pass touch events through to the cells. Default = YES.

- (BOOL) showPageControl [read, write, assign]

Default = NO.


The documentation for this class was generated from the following files: