Titanium iOS提供can'找不到控制器的模块

Titanium iOS gives couldn't find module for a controller

本文关键字:找不到 控制器 模块 iOS 提供 can Titanium      更新时间:2024-03-23

我创建了一个通过Facebook登录的应用程序(请注意,这一切都适用于android。)当他或她登录时,你会使用Alloy.createController("where", {}).getView();进入"哪里"屏幕,在哪里控制器中显示:$.where.open();该应用程序在android上运行完美。但当我登录iOS时,它会显示一个红色屏幕,上面写着应用程序错误-找不到模块:alloy/controllers/where for architecture:i386。有人知道怎么解决这个问题吗?

为了澄清,我打电话给where控制器使用的index.js

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

其中.js

$.where.open();

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

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