2010-01-01から1年間の記事一覧

PVRTへの変換 texturetoolのバッチ処理

このアプリが使えます!http://jbullfrog.com/froglog/?p=323

最小のボタンサイズ

人間の指先のサイズはiPhoneの画面上だと 44 × 44ピクセル (Retina Displayでは 88 x 88) の領域に相当. これ以下のサイズのボタンは避けるべし. 小さくて押せない!ということになりかねない.# iOS Human Interface Guidelineより

横スクロールでイメージギャラリー的なものを実装!

http://blog.sallarp.com/iphone-ipad-appstore-like-uiscrollview-with-paging-and-preview/

srand()

main.mにつけたすといいのかも。アプリが立ち上がるたびにrandom()のシードが初期化される. int main(int argc, char *argv[]) { srand(time(NULL)); // ここ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain…

@2xとSubversion

画像ファイルの最後に @2x をつけることでRetinaに対応した大きな画像ファイルと通常のファイルを簡単に切り替えて使える。たとえば btn_open.png というファイルがあったとして btn_open@2x.png を用意すると、Retinaに対応したデバイスでは、btn_open@2x.p…

UIColorの拡張

UIColorを拡張したクラス 便利です!! https://github.com/ars/uicolor-utilities