Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

HTML5/CSS3 for iPhone/iPad

Hi there,

I have a poor record for having these questions answered (i.e. 100% failure rate), but I'm going to keep on trying!

Is the following (taken from http://www.appcelerator.com/products/titanium-mobile-application-development/) now incorrect?

"Code like it’s the year 2020: HTML5 and CSS3 support
Built on top of the latest Webkit rendering engine, Titanium lets you develop advanced animations and sophisticated interfaces."

It would be fantastic if someone could clarify!

Thanks,

Toby

— asked September 21st 2010 by Toby Mathews
  • css
  • html
0 Comments

3 Answers

  • Yes, to use html you will have to use a webview, but I don't recommend it.
    Titanium gives you native access to the device UI and functions( like gps, sound, storage, etc).
    It's almost the same result like you were coding in objC but you are doing it in javascript.

    You could try to emulate an interface( for iphone let's say) in a webview and working with events to have access to the iphone's functions. But besides being easier for you( only aparently because it's pretty painful to do this ) you have a lot more to loose( the most important being the speed of the app)

    — answered September 21st 2010 by Dan Tamas
    permalink
    1 Comment
    • Yes, I don't think it's something we'll actually do but I appreciate your clarification.

      Toby

      — commented September 21st 2010 by Toby Mathews
  • I think they want to say that they have built the latest webkit engine into the Titanium for the webviews, giving you access to what this offers - hardware accelerated transformations, all the "-webkit" css3 properties and so on.

    — answered September 21st 2010 by Dan Tamas
    permalink
    0 Comments
  • Thanks Tamas, that really helps! So, we can work with HTML/CSS and just use Titanium.UI.WebView to render these?

    Toby

    — answered September 21st 2010 by Toby Mathews
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.