Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Titanium もくもく会 #5

Kosuke Isobe
January 25, 2013
1.9k

Titanium もくもく会 #5

Kosuke Isobe

January 25, 2013
Tweet

Transcript

  1. tiTokyo ΞϓϦ • ΋ͪΖΜ iOS / Android ྆ରԠ • Alloy

    0.3.6 ʹରԠʢexpr ͷ൵ܶʣ • i18nʢ೔ຊޠ / ӳޠʣ΋ • model ΋ͪΐͬͱ͚ͩ࢖͍ͬͯ·͢ • widget ΋࢖͍ͬͯ·͢ 13೥1݄26೔౔༵೔
  2. animation.js var win = Ti.UI.createWindow(); var view = Ti.UI.createView({ transform:

    Ti.UI.create2DMatrix() }); win.add(view); view.animate({ duration: 200, transform: Ti.UI.create2DMatrix().scale(1.05, 1.05) }, function(){ view.animate({ duration: 200, transform: Ti.UI.create2DMatrix() }, function(){ ... }); }); var Animation = require(‘alloy/ animation’); var win = Ti.UI.createWindow(); var view = Ti.UI.createView(); win.add(view); Animation.popIn(view, function(){ ... }); 13೥1݄26೔౔༵೔
  3. dialogs.js var dialog = Ti.UI.createAlertDialog({ title: ‘title’, message: ‘message’, buttonNames:

    [ ‘No’, ‘Yes’ ], cancel: 0 }); dialog.addEventListener(‘click’, function(e){ ... }); dialog.show(); var Dialogs = require(‘alloy/ dialogs’); Dialogs.confirm({ title: ‘title’, message: ‘message’, yes: ‘Yes’, no: ‘No’, callback: function(){ ... } }); 13೥1݄26೔౔༵೔
  4. var Social = require(‘alloy/social’); var twitter = Social.create({ consumerKey: ‘’,

    consumerSecret: ‘’ }); var tweet = funtion(){ twitter.share({ message: ‘message’, success: function(){}, error: function(){} }); }; if (twitter.isAuthorized) { tweet(); } else { twitter.authorize(tweet); } social.js 13೥1݄26೔౔༵೔