can anyone give me the help on this kind of error?
Actually i have the below code look like and i want to display the date in lblDate.text but got this error at the third row of the code:
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
[formatter setDateFormat:@"MMM, yyyy"];
[formatter stringFromDate:myDatePickerView.date] = lblDate.text;
您代码的最后一行应该是:
lblDate.text = [formatter stringFromDate:myDatePickerView.date];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.