Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Closing a child view which is from another controller

$
0
0

Titanium Studio 3.2.3 IOS 7

This is my main window:

index.xml

<Alloy>
    <Window id="mainWin">
         <Button title="Load Sizes" onClick="loadSize"></Button>
    </Window>
</Alloy>
index.js
function loadSize()
   {
         var newview = Alloy.createController('sizes').getView();
         $.mainWin.add(newview);
   }
sizes.xml
<Alloy>
   <View>
          <Label title="List of Sizes"></Label>
   </View>
</Alloy>
My problem now is how do I close the 'sizes' view from within the sizes controller view?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>