【问题标题】:How can I tell if my Titanium app is running on the simulator or not?如何判断我的 Titanium 应用程序是否在模拟器上运行?
【发布时间】:2012-10-26 16:30:58
【问题描述】:

我需要模拟测试数据,而不是在使用模拟器进行调试时尝试使用相机。

【问题讨论】:

    标签: titanium


    【解决方案1】:

    您应该可以为此使用Titanium.Platform.model 的值。 IIRC,它在模拟器上返回x86_64

    【讨论】:

    • 谢谢 - 目前我得到 Titanium.Platform.model = "Simulator"
    • 太好了,他们一定做了调整。
    猜你喜欢
    • 2010-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-10
    • 2012-03-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多