Tag: ObjectiveC iOS
- (void)dealloc { self.name = nil; [super dealloc]; }
#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]
NSLog(@"view frame = %@\n", NSStringFromCGRect(self.view.frame));
% gcc main.m -framework Foundation
NSLog(@"%@",[NSThread callStackSymbols]);
NSLog(@"array:%@",[array description]);
method_exchangeImplementations(orgMethod, newMethod);