Titaniumメモ

Ti.UIとTitanium.UIの違い

TiはTitaniumの略でどちらも同じ

Titanium SDK 1.4でTi.API.infoがちゃんとログを表示しない

下記URLのlogger.pyを入れると治る
http://developer.appcelerator.com/blog/2010/07/introducing-titanium-mobile-1-4.html

iTunes 10を入れるとTitaniumがiTunesを見つけられない

下記URLのprereq.pyを入れると治る
http://developer.appcelerator.com/blog/2010/09/quick-patch-itunes-10-detection-using-1-4.html

@masuidriveさんによるTips集

http://code.google.com/p/titanium-mobile-doc-ja/wiki/Tips
ここに書いてあるrakeファイルを入れるとかなり効率が上がる

Ti.UI.createWindowのurlパラメータで作ったwindowでtransitionが効かない

bongoleが書いたソースでうまく行く(今のところ)
http://developer.appcelerator.com/question/6481/window-transition-and-url

@masuidriveさんが作ってくれたAPIドキュメント

http://tidocs.com
インクリメンタルサーチが使えて公式より使いやすい

Ti.UI.createButtonで作成したボタンをdisableにできない

Ti.UI.createButton呼び出し時にenabledを指定しないと後からenabledをfalseにできないっぽい。

var btn1 = Ti.UI.createButton({ title: 'ok' });
btn1.enabled = false; // falseを入れてもボタンをdisableにできない。

var btn2 = Ti.UI.createButton({ title: 'ok', enabled: true});
btn2.enabled = false; // disableにできる。

iOS4以上でバックグラウンド動作させない

http://developer.appcelerator.com/question/40081/ios4---make-app-not-run-in-background
PROJECT_HOME/build/iphone/Info.plist を PROJECT_HOME/Info.plist にコピーして以下の設定を追加する

<key>UIApplicationExitsOnSuspend</key>
<true/>