【问题标题】:Titanium iOS gives couldn't find module for a controllerTitanium iOS 为控制器提供了无法找到的模块
【发布时间】:2023-03-24 20:28:01
【问题描述】:

我创建了一个通过 Facebook 登录的应用程序(请注意,这一切都适用于 android。)当他或她登录时,您使用 Alloy.createController("where", {}).getView(); 转到“位置”屏幕并在它在哪里控制器说:$.where.open(); 该应用程序在 android 上运行完美。但是当我在 iOS 上登录时,它会显示一个红色屏幕,上面写着应用程序错误 - 找不到模块:合金/控制器/架构的位置:i386。有谁知道如何解决这个问题?

所以为了澄清起见,我将 where 控制器称为 index.js 使用

$.index.close();
Alloy.createController('where', {}).getView();

在 where.js 中

$.where.open();

【问题讨论】:

  • index.js 中尝试 Alloy.createController('where', {}).getView().open(); 并从 where.js 中删除 $.where.open();

标签: javascript ios titanium


【解决方案1】:

尝试使用实际的窗口/视图 ID 打开或获取视图并在控制器中打开它?

// in where.js
$.getView().open()

【讨论】:

    猜你喜欢
    • 2018-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-17
    • 1970-01-01
    • 1970-01-01
    • 2016-05-16
    • 2016-07-27
    相关资源
    最近更新 更多