摘要:
- (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 阅读全文
posted @ 2012-10-19 16:15
大树2
阅读(8131)
评论(4)
推荐(2)
摘要:
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"];// 阅读全文
posted @ 2012-10-19 10:23
大树2
阅读(644)
评论(2)
推荐(0)

浙公网安备 33010602011771号