我在使用时间选择器时遇到问题,无法弄清楚我的问题是什么。这是我的代码;
timePicker.timeZone = [NSTimeZone localTimeZone];
NSDate *selected = [timePicker date];
NSString *message = [[NSString alloc] initWithFormat:
@"The date and time you selected is: %@", selected];
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Date and Time Selected"
message:message
delegate:nil
cancelButtonTitle:@"Yes, I did."
otherButtonTitles:nil];
[alert show];
例如,如果我选择时间下午 2:55,警报将返回“2012-08-14 19:55:37 +0000”
它必须是超级简单的东西,只是看不到它