//根据生日计算年龄
NSString *brdate=[result objectForKey:@"birthdate"];
NSDateFormatter *dateformatter=[[NSDateFormatter alloc] init];
[dateformatter setDateFormat:@"YYYY-MM-dd"];
NSDate *date =[dateformatter dateFromString:brdate];
NSTimeInterval dateDiff = [date timeIntervalSinceNow];
int age=trunc(dateDiff/(60*60*24))/365;
age=abs(age);//转化为正直(绝对值)