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
(Reword and remove false information)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''SBAppStatusBarManager''' is a singleton class that manages the status bar. You can access the singleton instance with the nonstandard method as follows:
'''SBAppStatusBarManager''' is a singleton class (not available prior to iOS 7) that manages the status bar. You can access the singleton instance using the following method:
<source lang="objc">
<source lang="objc">
+ (id)sharedInstance
+ (id)sharedInstance
</source>
</source>
This class was not available prior to iOS 7.


== Modification ==
== Modification ==


The following method can be used to hide the status bar.
The following nonstandard method can be used to hide the status bar.
<source lang="objc">
<source lang="objc">
- (void)hideStatusBar;
- (void)hideStatusBar;
</source>
</source>


The following method can be used to show the status bar.
The following nonstandard method can be used to show the status bar.
<source lang="objc">
<source lang="objc">
- (void)showStatusBar;
- (void)showStatusBar;
</source>
</source>


The following method can be used to modify the opacity of the status bar.
The following nonstandard method can be used to modify the opacity of the status bar.
<source lang="objc">
<source lang="objc">
- (void)setStatusBarAlpha:(float)alpha;
- (void)setStatusBarAlpha:(float)alpha;
Line 25: Line 24:


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

Latest revision as of 00:28, 3 October 2014

SBAppStatusBarManager is a singleton class (not available prior to iOS 7) that manages the status bar. You can access the singleton instance using the following method:

+ (id)sharedInstance

Modification

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

- (void)hideStatusBar;

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

- (void)showStatusBar;

The following nonstandard 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