NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
Classes | |
class | NISnapshotRotation |
The NISnapshotRotation class provides support for implementing snapshot-based rotations on views. More... | |
class | NITableViewSnapshotRotation |
The NITableViewSnapshotRotation class implements the fixedInsetsForSnapshotRotation: delegate method and forwards all other delegate methods along. More... | |
protocol | <NISnapshotRotationDelegate> |
The methods declared by the NISnapshotRotation protocol allow the adopting delegate to respond to messages from the NISnapshotRotation class and thus implement snapshot rotations. More... | |
Functions | |
UIImage * | NISnapshotOfView (UIView *view) |
UIImageView * | NISnapshotViewOfView (UIView *view) |
UIImage * | NISnapshotOfViewWithTransparency (UIView *view) |
UIImageView * | NISnapshotViewOfViewWithTransparency (UIView *view) |
An object designed to easily implement snapshot rotation.
Snapshot rotation involves taking two screenshots of a UIView: the "before" and the "after" state of the rotation. These two images are then cross-faded during the rotation, creating an animation that minimizes visual artifacts that would otherwise be noticed when rotation occurs.
This feature will only function on iOS 6.0 and higher. On older iOS versions the view will rotate just as it always has.
This functionality has been adopted from WWDC 2012 session 240 "Polishing Your Interface Rotations".
Returns an opaque UIImage snapshot of the given view.
This method takes into account the offset of scrollable views and captures whatever is currently in the frame of the view.
view | A snapshot will be taken of this view. |
view
. Returns a UIImageView with an image snapshot of the given view.
The frame of the returned view is set to match the frame of view
.
view | A snapshot will be taken of this view. |
view
and matching frame. Returns a UIImage snapshot of the given view with transparency.
This method takes into account the offset of scrollable views and captures whatever is currently in the frame of the view.
view | A snapshot will be taken of this view. |
view
. Returns a UIImageView with an image snapshot with transparency of the given view.
The frame of the returned view is set to match the frame of view
.
view | A snapshot will be taken of this view. |
view
and matching frame.