Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Modal window acting weird, help greatly appreciated! Possibly bug?!

Hi all,

I have some problems displaying a modal window containing a tableView above a window containing a scroll view and some buttons (platform is iPhone).


  1. 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.

  2. 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.

  3. 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,


— asked November 15th 2010 by Robert Gates
  • iphone
  • modal
  • scrollview
  • tableview
  • window

3 Answers

  • Hi …
    have you solved in some way?
    I have the same problem and i don't know how to solve it…

    — answered April 21st 2011 by Matteo Pacini
  • sorry to disappoint!

    — answered April 21st 2011 by Robert Gates
  • 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.

    — answered April 21st 2011 by Kosso
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.