Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我不希望能够合并您的 Sproutcore 项目和 Titanium。 Titanium 是“javascript”,但您不是在 iphone / ipad 上构建网站。
进行集成的唯一方法是在移动设备上启动 Webview 并让 Sproutcore 文件显示在其中。
I wouldn't expect to just be able to merge your Sproutcore projects and Titanium. Titanium is 'javascript' but you aren't building a website on the iphone / ipad.
Only way you could do integration there is to fire up he Webview on the mobile device and have your Sproutcore files show up within that.
正如 Ryan 所说,Titanium 只是一个没有 DOM 的 JavaScript 框架。
PhoneGap 集成更加平易近人。它期望有一个index.html作为入口点,并期望相对路径而不是绝对路径。 Peter Wagenet 编写了一个脚本来进行必要的转换。 另请参阅 SproutCore 邮件列表帖子
如果您不需要任何本机功能, (加速计、联系人等),您可以坚持使用标准 Web 应用程序,而不必担心 Titanium 或 PhoneGap 将其转换为本机移动应用程序。
另外,我预计我们会在不久的将来从 Strobe 听到有关 SproutCore(或后代)和移动设备的消息。
As Ryan said, Titanium is only a JavaScript framework without a DOM.
PhoneGap integration is more approachable. It expects to have a single index.html as an entry point and expects relative paths instead of absolute ones. Peter Wagenet wrote a script to do the necessary transformation. See also SproutCore mailing list thread
If you don't need any native capabilities (Accelerometer, Contacts, etc), you could stick to a standard web app and not worry about Titanium or PhoneGap to transform it to a native mobile app.
Also, I expect we'll hear something from Strobe in the near future about SproutCore (or a descendent) and mobile.