为什么在执行这段代码后iPhone模拟器3.1.2上的lDateFormatted
nil
?为什么NSDateFormatter返回nil?
NSString *lDateString = @"Wed, 17 Feb 2010 16:02:01";
NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
[dateFormatter setDateFormat:@"EEE, dd MMM yyyy hh:mm:ss"];
NSDate *lDateFormatted = [dateFormatter dateFromString: lDateString ];
任何想法表示赞赏,感谢
在这种情况下,蜱似乎没有必要,但我把它们放在反正。谢谢! – 2010-02-12 18:29:55