Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15078

iOS7: Modal Window is not closing correctly

    Details

      Description

      When I try to close a modal Window, it have no animation and put a *WARN* in console:

      *The top View controller is not a container controller. This window will open behind the presented controller.*

      Example code:

      var win1 = Ti.UI.createWindow({
      	backgroundColor: "#FF00FF",
      	title: "Window 1"
      });
       
      var navWindow = Ti.UI.iOS.createNavigationWindow({
      	window: win1
      });
       
      navWindow.open();
       
      win1.addEventListener("focus", function() {
      	alert("win1 focused");
      });
       
      win1.addEventListener("click", function() {
      	var buttonClose = Ti.UI.createButton({
      		title: "Close"
      	});
       
      	var win2 = Ti.UI.createWindow({
      		leftNavButton: buttonClose,
      		backgroundColor: "#FFFF00",
      		title: "Window 2"
      	});
      	
      	var navWindow2 = Ti.UI.iOS.createNavigationWindow({
      		modal: true,
      		window: win2
      	});
       
      	navWindow2.open();
      	
      	buttonClose.addEventListener("click", function() {
      		navWindow2.close();
      	});
      });
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              rafaelks Rafael Kellermann Streit
              Reviewer:
              Sabil Rahim
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17365
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration