You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/03/13 20:58:52 UTC
[23/35] git commit: Updated StatusBar docs for instructions on how to
hide it at app startup.
Updated StatusBar docs for instructions on how to hide it at app startup.
Project: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/commit/c94025e4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/tree/c94025e4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/diff/c94025e4
Branch: refs/heads/master
Commit: c94025e4dca8cf3a321d43c57bef276a1b7c7311
Parents: 378d688
Author: Shazron Abdullah <sh...@gmail.com>
Authored: Tue Feb 18 21:16:13 2014 -0800
Committer: Shazron Abdullah <sh...@gmail.com>
Committed: Tue Feb 18 21:16:13 2014 -0800
----------------------------------------------------------------------
README.md | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-statusbar/blob/c94025e4/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 5cfb583..c97fe47 100644
--- a/README.md
+++ b/README.md
@@ -9,14 +9,27 @@ Preferences
#### config.xml
-- __StatusBarOverlaysWebView__ (boolean, defaults to true). On iOS 7, make the statusbar overlay or not overlay the WebView.
+- __StatusBarOverlaysWebView__ (boolean, defaults to true). On iOS 7, make the statusbar overlay or not overlay the WebView at startup.
<preference name="StatusBarOverlaysWebView" value="true" />
-- __StatusBarBackgroundColor__ (color hex string, defaults to #000000). On iOS 7, set the background color of the statusbar by a hex string (#RRGGBB).
+- __StatusBarBackgroundColor__ (color hex string, defaults to #000000). On iOS 7, set the background color of the statusbar by a hex string (#RRGGBB) at startup.
<preference name="StatusBarBackgroundColor" value="#000000" />
+Hiding at startup
+-----------
+
+During runtime you can use the StatusBar.hide function below, but if you want the StatusBar to be hidden at app startup, you must modify your app's Info.plist file.
+
+Add/edit these two attributes if not present. Set **"Status bar is initially hidden"** to **"YES"** and set **"View controller-based status bar appearance"** to **"NO"**. If you edit it manually without Xcode, the keys and values are:
+
+
+ <key>UIStatusBarHidden</key>
+ <true/>
+ <key>UIViewControllerBasedStatusBarAppearance</key>
+ <false/>
+
Methods
-------