iOS---------获取当前年份
NSDate * senddate=[NSDate date];
NSDateFormatter *dateformatter=[[NSDateFormatter alloc] init];
[dateformatter setDateFormat:@"yyyy"];
// 今年2016
NSString *thisYearString=[dateformatter stringFromDate:senddate];
NSDate * senddate=[NSDate date];
NSDateFormatter *dateformatter=[[NSDateFormatter alloc] init];
[dateformatter setDateFormat:@"yyyy"];
// 今年2016
NSString *thisYearString=[dateformatter stringFromDate:senddate];