NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
The NISnapshotRotation class provides support for implementing snapshot-based rotations on views.
You must call this object's rotation methods from your controller in order for the rotation object to implement the rotation animations correctly.
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.