05-16-2009 12:53 PM
ok I have an app that launches a main screen with several buttons, when a button is clicked, i need it to push the new screen. But my screen extends MainScreen and you can only push and pop with UiApplication. So how is this done?
Ty for your time...
Solved! Go to Solution.
05-16-2009 07:57 PM
Ok thats great, ty.
Now a follow up question...
popScreen requires that a screen object be passed to it, but how do i get the currect screen object so i can pop it? also after I pop it, do I need to specifically destroy the object or will the garbage collections get it for me?
heres my call...
since im passing it a new ScreenTwo() object, wont it be like a memory leak when the method that called it goes out of scope?
05-16-2009 08:18 PM - edited 05-16-2009 08:20 PM
Create a reference then!
MainScreen screen=new MainScreen(); //now you can recall it!
A stack of screens is maintained by UiApplication so unless the application is closed, it won't go out of scope.