iOS developement and non-Objective-C languages

Is it possible to do development for iOS without having to learn Objective-C? For example, can I use another tool or programming language, HTML, JAVA, to do development then port that to iOS devices?

Macbook Pro, Mac OS X (10.6.6)

Posted on Feb 14, 2011 12:16 PM

Reply
6 replies

Feb 15, 2011 6:37 AM in response to etresoft

Thanks! I've been looking into Dashcode, but I'm still a little fuzzy on how it works for iOS.

I understand that you can use Dashcode to develop, in HTML, a website designed to be compatible and intuitive on the mobile version of Safari on iOS devices. But that just seems like building any other "mobile" website, granted Apple helps make it easier for you. But can you take that mobile site and create a native app for the iOS? For example, can you build a lean, native app, perhaps with a few off-line features such as taking notes and storing a few pages, but have it access all of the features when it's connected to the Internet?

Cheers,
Kiet

Feb 15, 2011 6:59 AM in response to kp.ramen

With Safari's support for HTML5, the only differences between a mobile web site and an application are the menu and the OS desktop/Finder interface. On iOS, you don't have the menu or the OS desktop/Finder interface so there essentially is no difference. You can create an app that is a WebKit wrapper and has all of its HTML and Javascript in the application bundle. It can have full functionality even without an internet connection.

If at some point you find that you can't do something in HTML5 and Javascript, then you might want to consider Objective-C.

Feb 15, 2011 7:19 AM in response to sptrakesh

PhoneGap is interesting. Basically, you write your App in HTML5, but with the addition of their toolkit which grants access to the other features of the phone (such as the photo catalog, contacts, etc.). The way it does this is that it basically has the HTML5 run in a UIWebView component (basically, a hosted browser), and then adds objects to the JavaScript interpreter by binding native components to the JavaScript (via WebScript).

So, the practical upshot is that you can write an app entirely in HTML5 and then PhoneGap will package it up into a native iPhone application with most of the features normally available to native apps and not to regular web-based apps. As an added bonus, PhoneGap will also package the same app for Android and RIM.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iOS developement and non-Objective-C languages

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.