是否有办法(一种合法方式)从载有日期的说明中提取一个日期格式,以便通过NSDateFormatter将其转换成NSDate?
i.e
string = @"2011-1-10";
format = [extractor extractFormat:string];// format would = yyyy-dd-mm
[formatter setDateFormatter:format];
NSDate * date = [formatter dateFromString:string];