PDA

View Full Version : Orientation poblems in PhoneGap/Sencha (iphone)



Elencrak
6 Sep 2011, 5:09 AM
I work on web application project (Iphone) and i have a problems with the redraw application when i turn mobile in lanscape.


My tools:
PhoneGap 9.5
Senchatouch 1.1
Iphone 3 ios 4.2

I see on this forum lots of solution but they didn't work on my application.




Ext.regApplication({
name: 'MYAPPLICATION',
appFolder: 'MYFOLDER',
launch: function() {
this.views.viewport = new this.views.ViewPort();
}
Ext.EventManager.onWindowResize(function(){
alert('Orientation Change');
});
});



This is my test but when i launch my application on mobile ios simulator and i turn my mobile in landscape the application create an exeption in objective-C. I don't now why.

Objective-c exeption:



011-09-02 16:23:57.107 My application [2105:207] -[NSCFString rotateSnapshots]: unrecognized selector sent to instance 0x1dd3698
2011-09-02 16:23:57.108 My application [2105:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString rotateSnapshots]: unrecognized selector sent to instance 0x1dd3698'
Thid exeption or this problem is due to misuse? or a bug in sencha Touch? or in phoneGap?

I want to redraw my application when i turn my mobile in landscape by default in web browser it work perfectly but with phoneGap/SenchaTouch it doesn't work.

Is possible to help to search a solution for resolv my problems ?