Skip to content

Instantly share code, notes, and snippets.

@raulriera
Created July 12, 2013 14:03
Show Gist options
  • Save raulriera/5984699 to your computer and use it in GitHub Desktop.
Save raulriera/5984699 to your computer and use it in GitHub Desktop.
Including this file in your project will solve the problem.
// If you remove code for any of the APIs except TiUIView (Available for module uses),
// then compile for iOS device will fail.
// Like, if i remove
// var PickerV = Ti.UI.createPicker();
// from the below code, then build for iOS device will fail, as you have used that in your module, and xcode will report as undefined symbol for TiUIPicker.
var NappUI = require('dk.napp.ui');
var win1 = Ti.UI.createWindow({
backgroundColor:"#FFF"
});
var win2 = Ti.UI.createWindow({
backgroundColor:"#FFF"
});
var tb1 = Ti.UI.createTab({
window: win1
});
var tb2 = Ti.UI.createTab({
window: win2
});
var tabGr = Ti.UI.createTabGroup({
tabs:[tb1,tb2]
});
var textf = Ti.UI.createTextField();
var webV = Ti.UI.createWebView();
var SBar = Ti.UI.createSearchBar();
var scroV = Ti.UI.createScrollableView();
var PickerV = Ti.UI.createPicker();
var toolBarV = Ti.UI.createToolbar();
var view = Ti.UI.createView({
backgroundColor: '#999',
height: 100,
shadow: {
shadowColor: '#000',
shadowRadius: 10,
shadowOffset: { x: 5, y: 5 },
shadowOpacity: 1
},
top: 50,
width: 100
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment