diff --git a/ios/README.md b/ios/README.md index 2fb6658..0fdcc52 100644 --- a/ios/README.md +++ b/ios/README.md @@ -38,6 +38,7 @@ var mainWindow = NappDrawerModule.createDrawer({ openDrawerGestureMode: NappDrawerModule.OPEN_MODE_ALL, leftDrawerWidth: 180, rightDrawerWidth: 220, + statusBarStyle: NappDrawerModule.STATUSBAR_WHITE, orientationModes: [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT] }); ``` @@ -172,6 +173,28 @@ Use this property to restrict the drawer to a certain set of orientations. You c mainWindow.setOrientationModes([Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT]); ``` +### StatusBarStyle + +Use this property to set the statusBar. You will need to add the following to tiapp.xml in order to make this work: + + + + + UIViewControllerBasedStatusBarAppearance + + + + + + +| input (constant) | Description | +| ----- | ----------- | +| STATUSBAR_BLACK | The statusbar icons and text will be black | +| STATUSBAR_WHITE | The statusbar icons and text will be white | + +```javascript +mainWindow.setStatusBarStyle(NappDrawerModule.STATUSBAR_WHITE); +``` ## API Methods @@ -223,6 +246,9 @@ mainWindow.addEventListener("windowDidClose", function(e) { ## Changelog +* v1.1.3 + * Added `statusBarStyle` to help iOS7 and the LIGHT CONTENT bug. Thanks to @adrianopaladini. + * v1.1.2 * Added events for open and close the drawer. * Added `animationMode`, `animationVelocity`, `shouldStretchDrawer` to the create method. diff --git a/ios/dist/dk.napp.drawer-iphone-1.1.3.zip b/ios/dist/dk.napp.drawer-iphone-1.1.3.zip new file mode 100644 index 0000000..8506dc5 Binary files /dev/null and b/ios/dist/dk.napp.drawer-iphone-1.1.3.zip differ diff --git a/ios/manifest b/ios/manifest index f7e1d3b..4b57bcd 100644 --- a/ios/manifest +++ b/ios/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 1.1.2 +version: 1.1.3 apiversion: 2 description: Drawer controller author: Mads Møller diff --git a/ios/titanium.xcconfig b/ios/titanium.xcconfig index 6a6bd4a..6fe4654 100644 --- a/ios/titanium.xcconfig +++ b/ios/titanium.xcconfig @@ -13,7 +13,4 @@ TITANIUM_SDK_VERSION = 3.1.3.GA TITANIUM_SDK = ~/Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION) TITANIUM_BASE_SDK = "$(TITANIUM_SDK)/iphone/include" TITANIUM_BASE_SDK2 = "$(TITANIUM_SDK)/iphone/include/TiCore" -HEADER_SEARCH_PATHS= $(TITANIUM_BASE_SDK) $(TITANIUM_BASE_SDK2) - - - +HEADER_SEARCH_PATHS= $(TITANIUM_BASE_SDK) $(TITANIUM_BASE_SDK2) \ No newline at end of file