Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/99.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Alloy nl.fokkezb.drawer小部件更改状态BarStyle_Ios_Titanium_Titanium Alloy_Drawer - Fatal编程技术网

Ios Alloy nl.fokkezb.drawer小部件更改状态BarStyle

Ios Alloy nl.fokkezb.drawer小部件更改状态BarStyle,ios,titanium,titanium-alloy,drawer,Ios,Titanium,Titanium Alloy,Drawer,我需要将statusbarstyle更改为黑色,我不知道如何。。。我试着把 Index.xml: <Alloy> <Widget id="drawer" src="nl.fokkezb.drawer"> <Window role="leftWindow" module="xp.ui"> </Window> <NavigationWindow id="navWindow" platfor

我需要将statusbarstyle更改为黑色,我不知道如何。。。我试着把

Index.xml:

<Alloy>
    <Widget id="drawer" src="nl.fokkezb.drawer">
        <Window role="leftWindow" module="xp.ui">

        </Window>
        <NavigationWindow id="navWindow" platform="ios" role="centerWindow">
            <Window >
                <LeftNavButton>
                    <Button id="leftButton" onClick="toggleLeft">ICON</Button>
                </LeftNavButton>
                <RightNavButton>
                    <Button id="rightButton">ICON</Button>
                </RightNavButton>
            </Window>
        </NavigationWindow>
        <View platform="android" role="centerWindow">

        </View>
    </Widget>
</Alloy>
接受以下值之一:

在您的情况下,您可以尝试以下代码:

"#drawer": {
    openDrawerGestureMode: "OPEN_MODE_ALL",
    closeDrawerGestureMode: "CLOSE_MODE_ALL",
    leftDrawerWidth: 200,
    exitOnClose: true,
    navBarHidden: true,
    fullscreen: true,
    statusBarStyle: Ti.UI.iPhone.StatusBar.OPAQUE_BLACK,
}

还要确保#drawer指向窗口视图元素。我不知道你的小部件抽屉是如何工作的。

这在iPad上工作吗?因为我想在Ipad上使用这个属性。根据文档,从Tianium SDK 3.1.3开始,iPhone和Ipad都支持这个属性。
"#drawer": {
    openDrawerGestureMode: "OPEN_MODE_ALL",
    closeDrawerGestureMode: "CLOSE_MODE_ALL",
    leftDrawerWidth: 200,
    exitOnClose: true,
    navBarHidden: true,
    fullscreen: true,
    statusBarStyle: Ti.UI.iPhone.StatusBar.OPAQUE_BLACK,
}