Nimbus
0.9.3 - Nimbus is proudly hosted on Github
An iOS framework whose growth is bounded by O(documentation).
|
A skeleton implementation of a page view.
This view simply implements the required properties of NIPagingScrollViewPage.
Definition at line 28 of file NIPageView.h.
Methods | |
NSInteger | pageIndex property |
NSString * | reuseIdentifier property |
(void) | - pageDidDisappear |
(void) | - setFrameAndMaintainState: |
(void) | - prepareForReuse |
- NIPageView: [read, write, assign] |
The page index.
Reimplemented from <NIPagingScrollViewPage>.
Definition at line 34 of file NIPageView.h.
- NIPageView: [read, write, copy] |
The reuse identifier.
Reimplemented from <NIRecyclableView>.
Definition at line 35 of file NIPageView.h.
- (void) pageDidDisappear | [optional, inherited] |
Called after the page has gone off-screen.
This method should be used to reset any state information after a page goes off-screen. For example, in the Nimbus photo viewer we reset the zoom scale so that if the photo was zoomed in it will fit on the screen again when the user flips back and forth between two pages.
- (void) setFrameAndMaintainState: | (CGRect) | frame | [optional, inherited] |
Called when the frame of the page is going to change.
Use this method to maintain any state that may be affected by the frame changing. The Nimbus photo viewer uses this method to save and restore the zoom and center point. This makes the photo always appear to rotate around the center point of the screen rather than the center of the photo.
- (void) prepareForReuse |
Called immediately after the view has been dequeued from the recycled view pool.