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
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)
-
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.
-
Thanks Tamas, that really helps! So, we can work with HTML/CSS and just use Titanium.UI.WebView to render these?
Toby