Skip to content

adrianopaladini/statusbar

Repository files navigation

Statusbar Module

Description

Appcelerator deprecate functions 'hideStatusBar', 'showStatusBar' and 'setStatusBarStyle' on runtime. This module gives you back the control over these functions on iOS 7/8.

Get the module

You can download the zip package or clone this git and compile

Accessing the statusbar Module

To access this module from JavaScript, you would do the following:

var statusbar = require("com.apaladini.statusbar");

The statusbar variable is a reference to the Module object.

IMPORTANT

To this module work, your need to add in your tiapp.xml the following code:

<ios>
    <plist>
	    <dict>
    	    <key>UIViewControllerBasedStatusBarAppearance</key>
            <false/>
        </dict>
    </plist>
</ios>

Functions

hide

Hide the status bar.

statusbar.hide();

or

statusbar.hide({animationStyle: statusbar.FADE});
input (constant) Description
NONE No animation
FADE Fading out
SLIDE (Default) The statusbar will slide to top

show

Show the status bar.

statusbar.show();

or

statusbar.show({animationStyle: statusbar.FADE});
input (constant) Description
NONE No animation
FADE Fading in
SLIDE (Default) The statusbar will slide from top

style

Set the color of status bar.

statusbar.style = statusbar.WHITE;
input (constant) Description
BLACK The statusbar icons and text will be black
WHITE The statusbar icons and text will be white

Author

Adriano Paladini

About

Statusbar control in iOS 7 with Titanium

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published