关于这个问题,您可以显示iPhone的日期选择器
让我们在代码 先在此功能,您需要注释的特殊情况下为iPhone做书面它一般情况下看
(void)show:(CDVInvokedUrlCommand*)command {
_command = command;
NSMutableDictionary *options = [command argumentAtIndex:0];
//if (isIPhone) {
[self showForPhone: options];
//} else {
// [self showForPad: options];
//}
}
,不要忘记删除特殊处理也隐藏
(void)hide {
//if (isIPhone) {
CGRect frame = CGRectOffset(self.datePickerComponentsContainer.frame,
0,
self.datePickerComponentsContainer.frame.size.height);
[UIView animateWithDuration:ANIMATION_DURATION
delay:0
options:UIViewAnimationOptionCurveEaseOut
animations:^{
self.datePickerComponentsContainer.frame = frame;
self.datePickerContainer.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0];
} completion:^(BOOL finished) {
[self.datePickerContainer removeFromSuperview];
}];
// } else {
// [self.datePickerPopover dismissPopoverAnimated:YES];
// }
}
你有没有找到解决这个问题的方法?我遇到了同样的问题,但使用了更新版本的datepicker插件。我看到,它支持一个X和Y配置在文档中,但是这仅是相对于拾取器绝对定位到应用程序的根视图,拾取器不能直接下方。 – 2015-11-09 17:37:20
如果我记得不错,我们最终会诉诸本地日期选择器。所以不能真正帮助这一点。它看起来像在这种特殊情况下,出于某些原因,我们从来没有取消本地日期选择器,但我从来没有得到这个问题的底部,因为它已经“解决了自己”出来;) – robjez 2015-11-09 22:12:37