ios - NSDateFormatter dateFromString returns nil for MM/dd/yyyy -
I am using the same nsdateformatter style and string in many apps and functions but There is a function called the background thread, and when I apply the break point, then NSDate becomes zero when I use the datefromstring NSString * start = [dataDict objectForKey: @ "start_date"]; NSString * end; If (! [[Data Dict objectForKey: @ "end_date"] is EqualToString: @ ""]) {end = [dataet object object: @ "end_date"]; } Other {end = [statistics data item: @ "estimate_and_date"]; } NSDateFormatter * formatter = [[NSDateFormatter alloc] init]; [Format setDateFormat: @ "yyyy"]; // NSLocale * enUSPOSIXLocale = [[NSLocale alloc] // initWithLocaleIdentifier: @ "en_US_POSIX"]; // emphasis (enUSPOSIXLocale! = Zero); // [Format SettleCell: NUSPOSISSXLocalay]; // [Formator set time zone: [NSTimeZone timeJoinfire seconds from GMT: 0]]; NSDateFormatter * detailformatter = [[NSDateFormatter alloc] init]; [Details: setDate...