La fecha no aparece en UILabel.
¿Qué está mal con este código?
<code> NSString *strTest = @"Sun Apr 12 23:29:24 +0000 2009"; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"MM/dd/yy"]; NSDate *createdAtFormatted = [dateFormatter dateFromString:strTest]; self.createdAt.text = [dateFormatter stringFromDate:createdAtFormatted]; </code>
self.createdAt es un UILabel y permanece vacío. ¿Por qué?
Al intentar usar dateWithNaturalLanguageString, obtengo: