date formatter different output on different devices running same iOS version
问题 NSDate *currentDate = [NSDate date]; NSDateFormatter *format = [[NSDateFormatter alloc] init]; [format setDateFormat:@"MM/dd/yyyy,h,mm,a"]; NSString *dateString = [format stringFromDate:currentDate]; [format release]; NSLog(dateString); Output in: Device iPhone4 [240:707] 10/25/2011,22,23, Current language: auto; currently objective-c warning: Unable to read symbols for /SDK4.2/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib Output