This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ti.Media.showCamera({ | |
success : function(event) { | |
alert('Your photo was saved to the Photo Gallery'); | |
}, | |
cancel : function() { | |
}, | |
error : function(error) { | |
var message; | |
if (error.code == Ti.Media.NO_CAMERA) { | |
message = 'Device does not have video recording capabilities'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
Titanium.UI.iPhone.statusBarStyle = Titanium.UI.iPhone.StatusBar.OPAQUE_BLACK; | |
// create tab group | |
var tabGroup = Titanium.UI.createTabGroup(); | |
// | |
// create base UI tab and root window | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test Runner - Online Code Debuging Framework for Titanium Mobile(iOS) | |
var tabGroup = Titanium.UI.createTabGroup(); | |
tabGroup.addTab(Titanium.UI.createTab({ | |
icon:'KS_nav_views.png', | |
title:'Test Runner', | |
window: Titanium.UI.createWindow({ | |
title:'Test Runner', | |
backgroundColor:'#fff', | |
url: 'testrunner.js' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test Runner - Online Code Debuging Framework for Titanium Mobile(iOS) | |
var tabGroup = Titanium.UI.createTabGroup(); | |
tabGroup.addTab(Titanium.UI.createTab({ | |
icon:'KS_nav_views.png', | |
title:'Test Runner', | |
window: Titanium.UI.createWindow({ | |
title:'Test Runner', | |
backgroundColor:'#fff', | |
url: 'testrunner.js' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------- | |
// TabGroup&Tabの定義と表示 | |
// ------------------------- | |
// | |
// ※余談ですが、SplitViewをコンテナとしてTabGroupを持つ事が出来ません。 | |
// そういう構成を組みたい場合はwin3.jsサンプルのようにViewを分割し、 | |
// 左側のViewにTabGroupをセットするようなやり方になります。 | |
// | |
var tabGroup = Ti.UI.createTabGroup(); | |
tabGroup.addTab(Ti.UI.createTab({ |
NewerOlder