Hacker News new | ask | show | jobs
by Hisoka 5463 days ago
Can I write in Javascript and your framework will convert it to a native iPhone app? If so, I'm gonna spread the word to my followers and make sure everyone at least tries this
1 comments

There is such a project already, called PhoneGap: http://www.phonegap.com/
I meant convert it to a real native app, not wrap it. I meant actually converting the Javascript to Objective C. So when you do: <div>Hi there!</div><div padding="5px">Hello!</div>, it gets converted to: frame = CGRectMake(0,0, 10, 10); frame.label.text = "Hi there"; frame2 = CGRectMake(15, 15, ...) frame2.label.text = "Hello";
Titanium from Appcelerator does allow controlling native components from javascript, however the base UI definition is not HTML AFAIK.