I have some problems displaying a modal window containing a tableView above a window containing a scroll view and some buttons (platform is iPhone).
When I click on the button (an imageView) and trigger the eventListener, the modal window shows up fine, just that the window behind it (the one where the modal was called from) suddenly displays portrait mode (a short flash during transition), yet the sim stays in landscape and the modal is displayed in landscape also. When I close the modal window, the original window is in landscape(!!!), so the window does not actually switch orientation, just the opening transition (the modal slide thing) is somehow broken.
Now, after closing the modal, and reopening it (now problem 1 is gone btw), my modal window suddenly gets a second tableView, which is totally empty, the standard Apple design, and sits between the background of the window and my half-opaque tableViewRows.
If I close and reopen the modal window quickly, meaning not giving the modal 5 seconds or so after closing, the app freezes and takes a while to crash (say 10 seconds)
My modal window:
A code snippet where/how the modal is called:
BTW: changing presentation on the modal doesn't help, nor does change of transition, nor the direct implementation of the modal window in the same js file where it is called (this only makes it worse, as in that problem 3 always occurs, regardless of wait time)
Help would really be appreciated!
Thanks in advance,
have you solved in some way?
I have the same problem and i don't know how to solve it…
sorry to disappoint!
Try putting the orientation mode properties INSIDE the actual createWindow method. (Rather than after wards)
That's definitely worth a try.
Logically what you have there is correct, but sometimes window creating etc can be quirky.