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

前端 未结 10 1512
离开以前
离开以前 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:41

    You should have the native wrapper written in Objective C. This wrapper could contain really few lines of code (like, 10) necessary to create a WebView and navigate it to the given address in the internet (where your application resides). But in this case your application should be a full-featured web application (I mean, use not only the JavaScript, but also some HTML for markup).

提交回复
热议问题