NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
The NITableViewSnapshotRotation class implements the fixedInsetsForSnapshotRotation: delegate method and forwards all other delegate methods along.
If you are rotating a UITableView you can instantiate a NITableViewSnapshotRotation object and use it just like you would a snapshot rotation object. The NITableViewSnapshotRotation class intercepts the fixedInsetsForSnapshotRotation: method and returns insets that map to the dimensions of the content view for the first visible cell in the table view.
The assigned delegate only needs to implement containerViewForSnapshotRotation: and rotatingViewForSnapshotRotation:.
Tasks | |
Accessing the Delegate | |
id< NISnapshotRotationDelegate > | delegate property |
Creating a Snapshot Rotation Object | |
(id) | - initWithDelegate: |
Implementing UIViewController Autorotation | |
(void) | - willRotateToInterfaceOrientation:duration: |
(void) | - willAnimateRotationToInterfaceOrientation:duration: |
(void) | - didRotateFromInterfaceOrientation: |
The delegate of the snapshot rotation object.
The delegate must adopt the NISnapshotRotation protocol. The NISnapshotRotation class, which does not retain the delegate, invokes each protocol method the delegate implements.
Initializes a newly allocated rotation object with a given delegate.
delegate | A delegate that implements the NISnapshotRotation protocol. |
delegate
. Prepares the animation for a rotation by taking a snapshot of the rotatingView in its current state.
This method must be called from your UIViewController implementation.
Crossfades between the initial and final snapshots.
This method must be called from your UIViewController implementation.
Finalizes the rotation animation by removing the snapshot views from the container view.
This method must be called from your UIViewController implementation.