Skip to content

Instantly share code, notes, and snippets.

@troscoe
troscoe / app.js
Last active December 16, 2015 10:48 — forked from FokkeZB/app.js
/* /Resources/app.js - Generated by Alloy, here to understand the flow */
var Alloy = require("alloy"), _ = Alloy._, Backbone = Alloy.Backbone;
Alloy.createController("index");
@troscoe
troscoe / alloy.js
Created September 9, 2013 18:29 — forked from FokkeZB/alloy.js
// For iOS7 only, set the window's top to 20 so they start under the status bar.
Alloy.Globals.windowTop = (OS_IOS && parseInt(Ti.Platform.version[0], 10) >= 7) ? 20 : 0;
// Optionally set the backgroundColor or backgroundImage to show behind the statusbar.
// Please note that the backgroundImage will cover the full screen, but only top 20px is visible.
// Ti.UI.backgroundColor = '#555';
// Ti.UI.backgroundImage = 'statusBar_bg.png';