简体   繁体   English

Ionic v1 - 本机日期选择器的视图仅在 iPhone 7 中不可见(带有取消和 Select 按钮的白屏)?

[英]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.

相关问题 日期/时间选择器颤动:确定/取消按钮不可见 - Date/Time Picker Flutter : OK/CANCEL button not visible 如何删除在顶部ionic v1应用上显示iPhone电池的白色边框/条形? - How to remove white border/bar that shows iPhone battery at top ionic v1 app? Ionic v1-键盘隐藏输入并创建白条 - Ionic v1 - Keyboard hides input and creates white bars 如何在iOS上的react-native-navigation(V1)中添加后退按钮以释放模式屏幕 - How can i add a back button to dissmiss a modal screen in react-native-navigation(V1) on ios 如何在Safari的本地日期选择器中隐藏“清除”按钮? - How to hide “clear” button in Safari's native date picker? image_picker:如果首先访问相机,则取消按钮在图库中不可见 - image_picker: Cancel button not visible in gallery, if camera was accessed first 离子白屏仅适用于 ios 版本 - ionic white screen only on ios build 在视图选择器中选择状态,转到新屏幕 - Select state in view picker, go to new screen ios媒体选择器仅显示白屏/卡住 - ios media picker shows only white screen/stuck Ionic2-在屏幕上更改iOS日期选择器的位置 - Ionic2 - Change location of iOS date picker on screen
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM