摘要:
常用字面量 NSString *string = @"easydaylife"; NSNumber *number = @(2014); NSArray *array = @[@"easy",@"day",@"life"]; NSDictionary *dictionary ... 阅读全文
摘要:
将结构体包装成 NSValue ,并取出结构体1 NSRect rect = {0, 0, 200,200};2 NSValue *rectValue = [NSValue valueWithBytes:&rect objCType:@encode(NSRect)];3 NS... 阅读全文
摘要:
-1 NSString 转成NSDate NSString *time = @"2014-05-18 09:24:40"; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; dateFormatter.... 阅读全文