开发者

Sproutcore + PhoneGap/Titanium? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 9 years ago.

Improve this question

I'm learning Sproutcore at the moment to write my application on it.

The backend will only be a server that pushes json out to the frontend Sproutcore application.

I wonder how it will be when I use PhoneGap or Titanium to port my app to the mobile phones.

How much of the current Sproutcore application do I hav开发者_运维技巧e to rewrite? Is it only the views and thus leaving the controllers and models untouched?

Cause Sproutcore offers a lot of UI and I guess I have to replace those if I want my app to look native (iPhone buttons, lists etc).

Any guides/tutorials on how it will look like when I combine Sproutcore with Phonegap or Titanium?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜