- Apple Developer
- iOS Dev Center
- iOS Reference Library
-
Icon/Default †
- Icon
- Default
| | |
Default.png | | 320 x 480 |
Default@2x.png | | 640 x 960 |
Default-Portrait.png | | 1004 x 768 |
Default-Landscape.png | | 768 x 1004 |
Default-PortraitUpsideDown?.png | | 1004 x 768 |
Default-LandscapeLeft?.png | | 768 x 1004 |
Default-LandscapeRight?.png | | 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)]);
-
#ifdef DEBUG
#define DBLog(s, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__])
#else
#define DBLog(s, ...)
#endif
#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]