I made it work by using the structure that comes by default in the index.js file from the phonegap installation for ios like this:
var app = {
initialize: function() {
this.bindEvents();
},
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
},
onDeviceReady: function() {
app.receivedEvent('deviceready');
},
receivedEvent: function() {
//jQTouch init here
var jQT = new $.jQTouch({
useFastTouch : true,
touchSelector : 'a, .btn, .touch'
});
//Put the rest of your app in here
}
};
Hope this helps! :)
*dont forget to initialize your app - app.initialize();