Codenameone iOS上的日历库应用程序崩溃
我在Eclipse中安装了带有首选项GUI的日历库,并将其称为Refresh CN1 Libs。下面的代码编译得很好,但在调用hasPermissions()时会使我的iOS设备上的应用程序崩溃 你知道吗Codenameone iOS上的日历库应用程序崩溃,codenameone,Codenameone,我在Eclipse中安装了带有首选项GUI的日历库,并将其称为Refresh CN1 Libs。下面的代码编译得很好,但在调用hasPermissions()时会使我的iOS设备上的应用程序崩溃 你知道吗 try { DeviceCalendar tmpDCal = DeviceCalendar.getInstance(); Message.showInformation("tmpDCal = " + tmpDCal == null ? "null
try
{
DeviceCalendar tmpDCal = DeviceCalendar.getInstance();
Message.showInformation("tmpDCal = " + tmpDCal == null ? "null" : "instance");
if (tmpDCal != null)
{
if (tmpDCal.hasPermissions())
{
// TODO
}
else
Message.showInformation("No rights");
}
}
catch (Exception e)
{
Message.showInformation("Exception: " + e.getMessage());
}
该库在迁移到xcode 9.2之前。我猜它需要更新ios.NS*的新构建提示 看到这个了吗
尝试添加calendar description构建提示,如果不起作用,您可以尝试通过使用7.3编译并查看其是否起作用来确认该假设。无论哪种方式,我们都可以将这些提示直接添加到库中。谢谢您的回复。添加构建提示ios.NSCalendarsUsageDescription后,我不再崩溃。没有必要使用7.3进行编译。