Question

I am looking at this WWDC session: Integrating JavaScript into Native Apps

My understanding is that this is a bridge between Obj-C and javascript, that allows calling javascript code from Obj-C and vice versa. I am wondering, does this mean I can dynamically load my 'code logic' from server in javascript, like in web applications? How should I structure my code so that a large part of my code is in javascript (Obj-C is still needed to drive the js code, of course).

If this is feasible, then deploying changes to iOS projects would no longer be such a painful experience(waiting for review and user upgrade,etc), development could be more agile. I know some teams use phonegap and similar frameworks just to get this advantage, but those solutions doesn't get the most of iOS native UI widgets/features.

If both data and logic can be loaded from server, and the Obj-c part is just the (relatively) stable skeleton code, then iOS apps become web apps without HTML (consider the app a customized web browser which loads code and data from server).

So my question is: how feasible is this? How should I split the code between Obj-C and js to make this as flexible as possible?

No correct solution

OTHER TIPS

As per Appstore Review Guidelines "Apps that download code in any way or form will be rejected"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top