-
Notifications
You must be signed in to change notification settings - Fork 324
Description
UIStatusBarStyleDefault (left: full size, right: shrinked)
- 26.12.2010: Automatic history-tracking for free!
This class provides a custom iOS status bar overlay window known from Apps like Reeder. It currently supports touch-handling, queuing of messages as well as three different animation modes:
- MTStatusBarOverlayAnimationShrink: When the user touches the overlay the overlay shrinks and only covers the battery-icon on the right side
- MTStatusBarOverlayAnimationFallDown: When the user touches the overlay a detail view falls down where additional information can be displayed. You can get a history of all your displayed messages for free by enabling historyTracking!
- MTStatusBarOverlayAnimationNone: Nothing happens, when the user touches the overlay
MTStatusBarOverlay currently supports two different status bar styles, which also can be changed in your app (MTStatusBarOverlay will adopt the style and will be updated the next time you show it):
- UIStatusBarStyleDefault
- UIStatusBarStyleBlackOpaque
You can use the custom status bar like this:
MTStatusBarOverlay overlay = [MTStatusBarOverlay sharedInstance];
overlay.animation = MTStatusBarOverlayAnimationFallDown; // MTStatusBarOverlayAnimationShrink
overlay.historyEnabled = YES; // enable automatic history-tracking and show in detail-view
[overlay showWithMessage:@"Following @myell0w on Twitter..."];
// ...
[overlay showWithMessage:@"Following myell0w on Github..."];
// ...
[overlay finishWithMessage:@"Following was a good idea!" duration:2.0];
if you call showWithMessage when the custom status bar is already visible, the new text is set animated.
- Device-Rotation currently only works on iPhone, not iPad
- When using UIStatusBarStyleBlackTranslutient the overlay is black opaque
- user interaction in detail view is not possible yet
UIStatusBarStyleBlackOpaque (left: activity indicator, right: finished-indicator)
UIStatusBarStyleDefault, Landscape
UIStatusBarStyleDefault, detail view visible