【问题标题】:how to create an Appcelerator IOS module using multiple XIBs如何使用多个 XIB 创建 Appcelerator IOS 模块
【发布时间】:2016-02-22 20:58:53
【问题描述】:

我正在尝试创建一个 Appcelerator IOS 模块,基本上是将 Native 中的 App 转换为 Appc 模块。

已使用 XIB 创建了本机项目。

到目前为止,我创建了一个代理并使用该视图代理来获取 XIB [[ViewController alloc] initWithNibName:@"ViewController" bundle: bundle];

我已将 xib 转换为 Nib,并将它们放在调用模块的项目的 Asset 文件夹中。

通过执行所有这些操作,我已经能够渲染 ViewController 屏幕。但是此屏幕上没有任何事件正在运行。

这是渲染第二个 xib 的代码:

- (IBAction)handleStinkyClick:(id)sender {
     firstScreen *fs=[[firstScreen alloc]initWithNibName:@"firstScreen" bundle:nil];
     fs.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
     URLsForDirectory:NSDocumentDirectory  inDomains:NSUserDomainMask] lastObject]);
     [self presentViewController:fs animated:YES completion:nil];
  }

我有什么遗漏吗?

任何帮助将不胜感激。

【问题讨论】:

    标签: ios objective-c iphone titanium appcelerator


    【解决方案1】:

    我会请一位 iOS 工程师来看看,但您可能有兴趣尝试 iOS 的 Hyperloop,它允许您需要 XIB 并混合搭配 Ti.UI.Viewnative 代码.

    http://labs.appcelerator.com/project/55f74a9f421c44837717716b/Hyperloop-Module

    【讨论】:

    • 谢谢 Fokke,我会检查超级高铁,但它现在处于测试阶段,知道什么时候可以在 GA 中使用吗?
    • 第一季度可能会达到 6.0。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-20
    • 1970-01-01
    • 2020-11-27
    • 1970-01-01
    • 1970-01-01
    • 2016-10-05
    • 1970-01-01
    相关资源
    最近更新 更多