How can I write an iPhone app entirely in JavaScript without making it just a web app?

前端 未结 10 1506
离开以前
离开以前 2020-12-07 07:22

I don\'t want to take the time to learn Obj-C. I\'ve spent 7+ years doing web application programming. Shouldn\'t there be a way to use the WebView and just write the whole

10条回答
  •  时光说笑
    2020-12-07 07:28

    There not way to do this with the current apple API's. Your closest bet is to write a simple native iPhone app that embeds the webkit browser. That will let you browse your xhtml/js application locally.

    If you want to store data, you'll need to take it a step further and include a light weight http server that servers up your app and provides calls to store and retrieve data. Probably not an ideal solution for you, but possibly less work than a full Obj-C app.

    As a side note, Obj-C is fairly easy to learn. There are tons of examples in the SDK. The community is strong and will answer well put questions without hesitation.

提交回复
热议问题