ios - Cordova plugin Datepicker popup, displayed in wrong position on iPad -
We have found the Cordova project (3.6.3), and (for various reasons I do not want to discuss here) we Here's how to include the date picker plugin:
All are fine on iPhones, but the iPad brings strange behavior to the table
First of all - this does not remove the original date picker, when I click on the label of the input input field (this removes it When I click on the input). Second - This displays the plugin date picker with the wrong location of the viewport (top-left corner, instead of just one input input field, as the original one).
Does anyone go into such problems, maybe you know what is the strange behavior of the plugin?
Cheer
About this problem you can display the iPhone's date picker
(zero) show: (CDVInvokedUrlCommand *) command {_command =} See this code in the first code, command; NSMutableDictionary * option = [command logicindexx: 0]; // if (iiPhone) {[self-shophron: option]; //} other {// [self-described: option]; Do not forget to remove special handling to hide more
Hide (zero) {// if (isiphone) { CGRect frame = CGRectOffset (self.datePickerComponentsContainer.frame, 0, self.datePickerComponentsContainer.frame.size.height); [UIView Animate Withdrawal: ANIMATION_DURATION Delayed: 0 Option: UIViewAnimationOptionCurveEaseOut Animation: ^ {self.datePickerComponentsContainer.frame = frame; Self.datePickerContainer.backgroundColor = [[UIColor blackcolor] colorWithAlphaComponent: 0]; } Closing: ^ (BOOL Finish) {[self.datePickerContainer removeFromSuperview]; }]; //} else {// [delete self.datePickerPopoverPoparApplied: Yes]; //}}
Comments
Post a Comment