Get Updates By E-mail 

Article Written By:
Johann Dowa

Example: JavascriptCore In iOS Apps – High Performance HTML5/Javascript Apps – No UIWebView

  •  
  •  
  •  
  •  
  •  

Web app to native iOS app frameworks such as Phonegap use the UIWebView to display html/javascript content within iOS apps.

There is also a Javascript interpreter on iOS contained within WebKit that can be used directly known as JavascriptCore (aka Nitro and Nitro Extreme).  Using JavascriptCore it is possible to directly render graphics using OpenGL and create audio using OpenAL.

Using this approach it is possible to create a browser capable of running high performance apps using HTML/Javascript.

You can read about how PhobosLab was able to successfully create, and have JavascriptCore games approved for the iOS app store here.

Unfortunately PhobosLab did not show how they were able to achieve this publicly, but Johannes Fahrenkrug has created an example Xcode project demonstrating how to get started using the JavascriptCore that can be found on Github here.

Not the most complex app, but you can easily see exactly how Johannes was able to use the JavascriptCore rather than the slower UIWebView.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments