Skip to content
myell0w edited this page Dec 26, 2010 · 2 revisions

Read Me

UIStatusBarStyleDefault (left: full size, right: shrinked)

Default style

New Features!

  • 26.12.2010: Automatic history-tracking for free!

Description

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

Usage

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.

Known Limitations

  • 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

More Screenshots

UIStatusBarStyleBlackOpaque (left: activity indicator, right: finished-indicator)

Black style

UIStatusBarStyleDefault, Landscape

Default style landscape

UIStatusBarStyleDefault, detail view visible

History tracking:

Clone this wiki locally