05 2013 档案
摘要:@interface BusinessCard2 : NSObject@property (nonatomic) int _age;@property (nonatomic) Byte _padding; //放在这里会让对象分配内存空间时多分16字节=》alloc(32字节)@property (nonatomic, retain) NSString *_firstName;@property (nonatomic) Byte _b1;@end;@implementation BusinessCard2- (void)dealloc{ [__firstName release];}@end测
阅读全文
摘要:iphone4s : fc04f0ab6ae3e0ab0e8156a368b634c885b3e1d0 NSDate *start = [NSDate date]; if (dateFormatter == nil) { for(int i = 0; i < 100000; i++){ [NSDateFormattersetDefaultFormatterBehavior:NSDateFormatterBehaviorDefault]; dateFormatter = [[NSDateFormatter alloc] init]; ...
阅读全文