I cannot get Navigation Window to show up? I have followed the documentation here (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.NavigationWindow), reread and searched online with no success. Everything looks right to me. On Android the navigations works fine, even on iOS the screen changes to the account window its just that there is no Navigation bar at the top enabling the user to go back!
index.xml
<Alloy> <NavigationWindow id="navWindow" platform="ios"> <Window id="loginWindow" title="Login" platform="android,ios,mobileweb"> <View id="bodyView"> <View class="newline"/> <View class="newline"/> <TextField id="txtUsername" hintText="Username"/> <View class="newline"/> <TextField id="txtPassword" hintText="Password" onReturn="login"/> <View class="newline"/> <Button class="button" onClick="login">Login</Button> <Button class="informationButton" onClick="information"/> </View> </Window> </NavigationWindow> </Alloy>index.js
// open the window $.loginWindow.open(); var loadAccountsViewInterval; function loadAccountsView() { if (Ti.App.restClientLoading === false) { clearInterval(loadAccountsViewInterval); loadAccountsViewInterval = false; Alloy.Collections.accounts.fetch(); if (Alloy.Collections.accounts.length > 0) { Ti.API.info("loading accounts view"); var accountsWindow = Alloy.createController("accounts").getView(); if (Titanium.Platform.name == 'iPhone OS') { $.navWindow.openWindow(accountsWindow); } else { accountsWindow.open(); } } } }accounts.xml
<Alloy> <!-- Main Window --> <Window id="topAccountWindow" title="Accounts" platform="android,ios,mobileweb"> <TableView id="accountsTableview" dataCollection="accounts" dataFilter="whereFunction" dataTransform="transformFunction"> <Require src="accountsRow"/> </TableView> </Window> </Alloy>accounts.tss
"#topAccountWindow": { fullscreen: false, navBarHidden: false, exitOnClose: false, top: Alloy.Globals.windowTop, backgroundColor: 'orange', backgroundGradient: { type: "linear", startPoint: { x: "0%", y:"0%"}, endPoint: { x: "0%", y:"100%"}, colors: [ { color: "black", offset: 0.0 }, { color: "orange", offset: 1.0 } ] } }Application type: mobile SDK: 4.0.0.GA Appcelerator Studio, build: 4.0.0.201505202026 Platform & version: iOS 8.2 Device: iOS simulator Host Operating System: OSX 10.10.2