Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
SBAppStatusBarManager: Difference between revisions - iPhone Development Wiki

SBAppStatusBarManager: Difference between revisions

From iPhone Development Wiki
No edit summary
Line 25: Line 25:


== References ==
== References ==
* Header: https://gist.github.com/anonymous/7052315
{{occlass|library=SpringBoard.app|navbox=1}}
{{occlass|library=SpringBoard.app|navbox=1}}

Revision as of 06:32, 19 October 2013

SBAppStatusBarManager is a singleton class that manages the status bar. You can access the singleton instance with the nonstandard method as follows:

+ (id)sharedInstance

This class was not available prior to iOS 7.

Modification

The following method can be used to hide the status bar.

- (void)hideStatusBar;

The following method can be used to show the status bar.

- (void)showStatusBar;

The following method can be used to modify the opacity of the status bar.

- (void)setStatusBarAlpha:(float)alpha;

However, it should be noted that all changes made to the status bar are temporary, and are reverted to defaults when an app is opened.

References