IOS8下,在quick下面调用IOS原生的时间选择框,日期不显示了。

看到一个帖子说在IOS8下,看一个帖子说在IOS8上,UIActionSheet被废弃了,得用UIAlertController来替代,但是quick里面调用UIAlertController就挂,而直接原生开发中,UIAlertController就不会挂。
在IOS8之前,用下面的代码都不会挂,正常使用。
+(void)callTimePicker:(NSDictionary *)dict{
NSString *time = ;
NSLog(@"Current Time:%@", time);
NSString *title = UIDeviceOrientationIsLandscape(.orientation) ? @"\n\n\n\n\n\n\n\n\n" : @"\n\n\n\n\n\n\n\n\n\n\n\n" ;
UIActionSheet *action_sheet = initWithTitle:title delegate: cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"确定", nil];
.view];
action_sheet.tag = 200;
UIDatePicker *picker = init] autorelease];
picker.datePickerMode = UIDatePickerModeTime;
NSDateFormatter *formatter = init];
formatter.dateFormat = @"HH-mm";
animated:YES];
picker.tag = 1002;
;
}
请热心人告知下,在IOS8下面,quick调用原生的时间选择框怎么做。。感谢!