Skip to content

Commit

Permalink
v. 1.1.3 - StatusBarStyle added to aid the iOS7 styling issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mads Møller committed Jan 17, 2014
1 parent 189c0ee commit fddae52
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
26 changes: 26 additions & 0 deletions ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
});
```
Expand Down Expand Up @@ -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:
<ios>
<plist>
<dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
</ios>
| 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
Expand Down Expand Up @@ -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.
Expand Down
Binary file added ios/dist/dk.napp.drawer-iphone-1.1.3.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion ios/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions ios/titanium.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit fddae52

Please sign in to comment.