[英]Ionic v1 - Native Date Picker's view is not visible(white Screen with Cancel & Select button) in iPhone 7 only?
This is the screen for reference I'm using below mentioned date picker plugin这是我在下面提到的日期选择器插件中使用的参考屏幕
plugin name="skwas-cordova-plugin-datetimepicker" spec="~1.0.0"
插件名称="skwas-cordova-plugin-datetimepicker" 规范="~1.0.0"
This plugin is working in all devices both Android & IOS Platform.该插件适用于 Android 和 IOS 平台的所有设备。 But In iPhone 7 only Native date picker is coming like white background with Cancel & Select button.
但在 iPhone 7 中,只有原生日期选择器像白色背景一样带有取消和 Select 按钮。
Please suggest me to resolve this issue.请建议我解决此问题。
Thank you!谢谢!
The issue might be due to the dark mode on iPhone.该问题可能是由于 iPhone 上的暗模式所致。 At least it was working for me on my iPhone 7 though I am using cordova-plugin-datepicker .
至少它在我的 iPhone 7 上对我有用,尽管我使用的是cordova-plugin-datepicker 。 I got it fixed by adding the following lines under
<platform name="ios">
in config.xml我通过在config.xml中的
<platform name="ios">
下添加以下行来修复它
<platform name="ios">
<config-file parent="UIUserInterfaceStyle" target="*-Info.plist">
<string>Light</string>
</config-file>
Then run in the console然后在控制台运行
ionic platform remove ios
ionic platform add ios
ionic platform prepare ios
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.