NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
Functions | |
CGFloat | NIMinimumTapDimension (void) |
CGFloat | NIToolbarHeightForOrientation (UIInterfaceOrientation orientation) |
UIViewAnimationCurve | NIStatusBarAnimationCurve (void) |
NSTimeInterval | NIStatusBarAnimationDuration (void) |
UIViewAnimationCurve | NIStatusBarBoundsChangeAnimationCurve (void) |
NSTimeInterval | NIStatusBarBoundsChangeAnimationDuration (void) |
CGFloat | NIStatusBarHeight (void) |
NSTimeInterval | NIDeviceRotationDuration (BOOL isFlippingUpsideDown) |
UIEdgeInsets | NICellContentPadding (void) |
For common system metrics.
If you work with system metrics in any way it can be a pain in the ass to figure out what the exact metrics are. Figuring out how long it takes the status bar to animate is not something you should be spending your time on. The metrics in this file are provided as a means of unifying a number of system metrics for use in your applications.
Common metrics are system components, such as the dimensions of a toolbar in a particular orientation or the duration of a standard animation. This is not the place to put feature-specific metrics, such as the height of a photo scrubber view.
The following example updates the position and height of a toolbar when the device orientation is changing. This ensures that, in landscape mode on the iPhone, the toolbar is slightly shorter to accomodate the smaller height of the screen.
The recommended number of points for a minimum tappable area.
Value: 44
Fetch the height of a toolbar in a given orientation.
On the iPhone:
On the iPad: always 44
The animation curve used when changing the status bar's visibility.
This is the curve of the animation used by -[[UIApplication sharedApplication] setStatusBarHidden:withAnimation:].
Value: UIViewAnimationCurveEaseIn
The animation duration used when changing the status bar's visibility.
This is the duration of the animation used by -[[UIApplication sharedApplication] setStatusBarHidden:withAnimation:].
Value: 0.3 seconds
The animation curve used when the status bar's bounds change (when a call is received, for example).
Value: UIViewAnimationCurveEaseInOut
The animation duration used when the status bar's bounds change (when a call is received, for example).
Value: 0.35 seconds
Get the status bar's current height.
If the status bar is hidden this will return 0.
This is generally 20 when the status bar is its normal height.
The animation duration when the device is rotating to a new orientation.
Value: 0.4 seconds if the device is being rotated 90 degrees. 0.8 seconds if the device is being rotated 180 degrees.
isFlippingUpsideDown | YES if the device is being flipped upside down. |
The padding around a standard cell in a table view.
Value: 10 pixels on all sides.