问题
I want to use jQTouch to build iPhone app for large website. When searched for it, I understood that I must edit my HTML code for website to be Suitable to my app, how I can do this without conflict with the style for my website?
Also, what is the basic steps to using jQTouch ? just Add scripts and Initialize as here : http://code.google.com/p/jqtouch/wiki/GettingStarted .
help me with many thanks.
回答1:
A pretty good idea is to detect the iPhone server-side and then send different HTML with all the jQTouch goodness included and your original style excluded.
回答2:
Unless you are extremely lucky, you won't be able to use the same markup for both your normal and jqTouch sites. Your site is likely not a single page application based off of hashed urls.
To get started using jqTouch I'd suggest loading up the demo and editing things in and out of the demo. That will give you the best jump-start into how everything works.
回答3:
What Jakub suggests is the best answer for you without getting into making an iPhone App. But from experience I also suggest you think about the nature of your application. Basically decide whether your service is something that mentally as soon as the user thinks about it makes them want to open safari.
If not I would suggest you need to consider making a proper app rather than a jQtouch enabled website.
This is mainly because people always prefer the short way to achieve tasks.
And if you have competitors they will just simply make an app after you release and steal your customers.
来源:https://stackoverflow.com/questions/2840935/using-jqtouch-for-large-website