Click here to support Nimbus development and make a donation at www.pledgie.com !
An iOS framework whose growth is bounded by O(documentation).
NIViewRecycler Class Reference

Overview

An object for efficiently reusing views by recycling and dequeuing them from a pool of views.

This sort of object is what UITableView and NIPagingScrollView use to recycle their views.

Definition at line 71 of file NIViewRecycler.h.

Methods

(UIView< NIRecyclableView > *) - dequeueReusableViewWithIdentifier:
(void) - recycleView:
(void) - removeAllViews

Method Documentation

- (UIView< NIRecyclableView > *) dequeueReusableViewWithIdentifier: (NSString *)  reuseIdentifier

Dequeues a reusable view from the recycled views pool if one exists, otherwise returns nil.

Parameters:
reuseIdentifierOften the name of the class of view you wish to fetch.

Definition at line 77 of file NIViewRecycler.m.

- (void) recycleView: (UIView<NIRecyclableView> *)  view

Adds a given view to the recycled views pool.

Parameters:
viewThe view to recycle. The reuse identifier will be retrieved from the view via the NIRecyclableView protocol.

Definition at line 92 of file NIViewRecycler.m.

- (void) removeAllViews

Removes all of the views from the recycled views pool.

Definition at line 118 of file NIViewRecycler.m.

Generated for Nimbus by doxygen 1.7.4-20110629