Skip to content

Instantly share code, notes, and snippets.

View ilDon's full-sized avatar

Don ilDon

View GitHub Profile
@zo0m
zo0m / app.js
Last active September 18, 2015 10:44 — forked from dawsontoth/app.js
/**
* The following snippet will ask the user to rate your app the second time they launch it.
* It lets the user rate it now, "Remind Me Later" or never rate the app.
*/
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
win.addEventListener('open', checkReminderToRate);
win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' }));
win.open();
function checkReminderToRate() {
@zo0m
zo0m / customGUIManager.js
Last active September 18, 2015 21:12
Titanium UI Factory example
/**
* Inside controller :
*
* var customGUIManager = new CustomGUIManager($);
*
* customGUIManager.createLabel('sampleUIClassName', 'SampleText', { left : '15dp'}),
*
*/