摘要:
NSDate *date = [NSDate date];//日期格式化类NSDateFormatter *formatter = [[NSDateFormatter alloc] init];//y年 M月 d日//m分 s秒 H(24)时 h(12)时//2015-08-15 22:30:30f... 阅读全文
摘要:
NSNumberNSNumber *n = [NSNumber numberWithDouble:10.5];int d = [n doubleValue];int a = 20;NSString *str = [NSString stringWithFormate:@"%d", a];//stri... 阅读全文
摘要:
NSDictionarykey --->value索引 --->内容存储键值对(1)三种创建方式:NSDictionary *dict = [NSDictionary dictionaryWithObject:@"Jony" forKey:@"name"]; NSArray *keys = @[@... 阅读全文
摘要:
NSSet *s = [NSSet set];NSSet *s2 = [NSSet setWithObjective:@"a", @"b", @"c", nil];NSString *s3 = [s3 anyObject];NSMutableSet *s = [NSMutableSet set];[... 阅读全文