My iphone application having the Date Picker option. It is working fine in 3GS and above iphone devices. But, Date picker is some times getting crash in iPhone 3G. I have used some NSDateFormatters
in Date Picker 'Done' button. I think the NSDateFormatter
is not supporting in 3G. Can anyone suggest the available/supporting NSDateFormatters
in 3G? Below i have mentioned some NSDateFormatters
that i has used in my code. Please help me to solve this problem.
[outputFormatter setDateFormat:@"hh:mm:ss"];
[outputFormatterT setDateFormat:@"hh:mm:ssa"];
[outputFormatter1 setDateFormat:@"h:mm aaa"];
NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init]; [outputFormatter setDateFormat:@"hh:mm:ss"]; NSDateFormatter *outputFormatterT = [[NSDateFormatter alloc] init]; [outputFormatterT setDateFormat:@"hh:mm:ssa"]; NSString *timeStrT = [outputFormatterT stringFromDate:[timePicker date]]; NSDateFormatter *outputFormatter1 = [[NSDateFormatter alloc] init]; outputFormatter1 setDateFormat:@"h:mm aaa"]; NSString *str = [outputFormatter1 stringFromDate:[timePicker date]];
and also i has used stringAppendingString
format also, i cant replicate the crashing issue. Thanks in advance. Please edit my question.