摘要:
- (void)loopThrough { NSArray * keys=[NSArray arrayWithObjects:@"key1“,@"key2",@"key3",nill]; NSArray *objects=[NSArray arrayWithOjbects:@"how",@"are",@"you",nill]; NSDictionary *dic=[NSDictionary dictionaryWithObjects:objects,forKeys:keys]; //l 阅读全文
摘要:
1〉NSDateFormatter ,设置日期格式;2>NSLocale ,设置时区;3〉df dateFromString:birthday;将字符格式发到日期格式;@implementation Person@systhesize fistName,lastName,birthDate,salary;- (NSDate *)makeBirthDate:(NSString *)birthday{ NSDateFormatter df=[[NSDateFormatter alloc] init]; [df setDateFormat:@"yyyy-MM-dd"];// 阅读全文