Can I write iOS (Cocoa) applications in JavaScript?

PhoneGap offers a good solution for writing cross-platform applications with HTML5 and JavaScript.

But I would like to use Interface Builder for the user interface and just write all the controller code in Javascript instead of Objective-C (with the ability to select and map and, especially, call into any Objective-C libraries that I may need).

Is there a framework for this? Something similar to what CamelBones does for Perl.

The reason for this is that code other than the UI could ideally be written in JavaScript for reuse for the web version, a possible version of Android PhoneGap in the future, and server-side (node.js).

+6
javascript ios cocoa-touch
source share
5 answers

You can try using the Apcelerator Titanium product. It allows you to write native iPhone applications in HTML + Javascript.

Check here . I have not used it, but it seems that you want.

+4
source share

Another option is to use iOS Javascript Bridge to write an application in Javascript.

https://github.com/coolbloke1324/iOS-JavaScript-Bridge

+3
source share

You can try JSCocoa . This allows you to write Cocoa applications in JavaScript, such as bridges.

It works on Mac and iPhone. He also works with Interface Builder during development.

0
source share

Here's an article that mentions several alternatives to using Objective-C

0
source share

Just stumbled upon this (old) question, but wanted to contribute by specifying NibleKit = "<http://www.nimblekit.com/index.php" rel = "nofollow"> http://www.nimblekit.com/ index.php), which allows you to create custom iOS applications using only HTML and Javascript.

-one
source share

All Articles