iOS Question any way to uninitialise everything on a page?

Arf

Well-Known Member
Licensed User
Longtime User
In my app I repeatedly do go through certain pages, and re-load them at a later point.
I want to make it so that each time I re-enter a page, it starts off with everything in the same state.
In B4A this was easy as I could create elements in Global, and they get destroyed upon exit from the Activity and created fresh on re-entry.

Since all the variables and views in b4i seem to be global, I can't do this. It's particularly problematical because I rely on the designer scripts to do a log of initialisation.

So, is there any way I can de-init everything other than manually settings each element back to it's starting point in a Disappear function?
 

Arf

Well-Known Member
Licensed User
Longtime User
If I remove all views from the root in the Dissapear function, and reload the layout upon re-entry, is that OK or will I be creating multiple instances of screen elements if I do that?
 
Upvote 0
Top