WebBased ios7 app without phone gap

Discussion in 'iOS Programming' started by cpuin, Apr 14, 2014.

  1. cpuin macrumors member

    Joined:
    Feb 3, 2013
    #1
    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?
     
  2. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    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.
     
  3. D.T., Apr 15, 2014
    Last edited: Apr 15, 2014

    D.T. macrumors 603

    D.T.

    Joined:
    Sep 15, 2011
    Location:
    Vilano Beach, FL
    #3
    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 :)
     
  4. cpuin thread starter macrumors member

    Joined:
    Feb 3, 2013
    #4
    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
     

Share This Page