首页 > 解决方案 > 使用 Hyperloop 从目标 C 到 Titanium 的火灾事件

问题描述

我想使用 hyperloop 将事件从目标 C 触发到 Titanium。

我从 Titanium iOS 模块中找到了如何做到这一点:https ://ti-qa-archive.github.io/question/51751/how-to-fire-an-event-in-a-module-and-catch-it -in-js.html

文档指出“TiModule 是提供 fireEvent 方法的 TiProxy 的子类”,但我的班级中不存在 TiModule。

我的 .h 文件中的接口实现了 UIViewController 而不是 TiModule 或 TiProxy。谢谢

标签: titaniumappceleratortitanium-mobileappcelerator-titaniumtitanium-alloy

解决方案


推荐阅读