本家 †
- Apple Developer
- iOS Dev Center
- iOS Reference Library
- 日本語ドキュメント
情報源 †
Icon/Default †
- Icon
ファイル名 | デバイス | 画像サイズ |
Icon.png | iPhone 3G、iPhone 3GS、iPod touch | 57 x 57 |
Icon@2x.png | iPhone 4、iPod touch | 114 x 114 |
Icon-72.png | iPad | 72 x 72 |
Icon-Small.png | 検索結果iPhone3GS | 29 x 29 |
Icon-Small-50.png | 検索結果iPad | 50 x 50 |
Icon-Small-@2x.png | 検索結果iPhone4 | 58 x 58 |
- Default
ファイル名 | デバイス | 画像サイズ |
Default.png | iPhone 3G、iPhone 3GS、iPod touch | 320 x 480 |
Default@2x.png | iPhone 4、iPhone 4GS | 640 x 960 |
Default-Portrait.png | iPad縦/ホームボタン下 | 1004 x 768 |
Default-Landscape.png | iPad横 | 768 x 1004 |
Default-PortraitUpsideDown?.png | iPad縦/ホームボタン上 | 1004 x 768 |
Default-LandscapeLeft?.png | iPad横/ホームボタン左 | 768 x 1004 |
Default-LandscapeRight?.png | iPad横/ホームボタン右 | 768 x 1004 |
three20 †
DEBUG †
- プロジェクト→アクティブな実行ファイルを編集
- 引数→環境に設定される変数
- 以下を追加
NSZombieEnabled? | YES |
MallocStackLogging? | YES |
NSDebugEnabled? | YES |
DEBUG LOG †
- CGRect, CGSize, CGPoint
NSLog(@"frame: %@", NSStringFromCGRect(self.view.frame));
NSLog(@"size: %@", NSStringFromCGSize(self.view.frame.size));
NSLog(@"center: %@", NSStringFromCGPoint(self.view.center));
- UIView
NSLog(@"%@", [view performSelector:@selector(recursiveDescription)]);
- DEBUG時のみログ出力
#ifdef DEBUG
#define DBLog(s, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__])
#else
#define DBLog(s, ...)
#endif
UIColorをRGBで †
#define RGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]
#define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]