Problem in type casting in NSDate to NSString?
Posted
by Prash.......
on Stack Overflow
See other posts from Stack Overflow
or by Prash.......
Published on 2010-05-28T17:36:45Z
Indexed on
2010/05/28
17:41 UTC
Read the original article
Hit count: 306
Hi, I developing an application, in which i found a ridiculous problem in type casting, I am not able to type cast NSDate to NSString.
NSDate *selected =[datePicker date];
NSString *stringTypeCast = [[NSString alloc] initWithData:selected
encoding:NSUTF8StringEncoding];
From ,above snippet datePicker is an object of UIDatePickerController.
© Stack Overflow or respective owner