Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cpuin

macrumors member
Original poster
Feb 3, 2013
77
0
i'm wandering whether is possible to create WebBased (java script, html5, css) iOS 7 app without using phonegap?
iOS 7 support call of JavaScript, there is also WebView.Is it possible to create such an app?
I like http://ionicframework.com and want to create app using it, but without phone gap.
If so, can i have access to camera/accelerometer and other functions?
Any examples?
 
An iOS app can contain just a UIWebView (for HTML5 and Javascript content) without PhoneGap. But you would have to code your own support for the camera in Objective C.
 
An iOS app can contain just a UIWebView (for HTML5 and Javascript content) without PhoneGap. But you would have to code your own support for the camera in Objective C.

You can access the camera and photos through a browser interface in [mobile] Safari, though not sure if it’s supported in a WebView. For example, sourcing image content for upload (no idea about the OPs design intent), once it’s loaded into a canvas, you can also do transformations, etc., with CSS3.

BTW, if you’re aware of that, I wasn’t trying to ‘splain it to you, just bring it up as an alternative for the OP :)
 
Last edited:
I just have created a UIWebView Xcode app running HTML and JavaScript.
I'm surprised to see that in Safari my code is working, and in the app i see the html, but the CSS and JavaScript framework seems that is not working.I use
http://www.idangero.us
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.