iOS Question Page layouts and program structure

Arf

Well-Known Member
Licensed User
Longtime User
In my app I have heaps of pages. A layout gets loaded on the initial page, and you move onto subsequent pages depending on what you do. Let's say we're on the 2nd page and whatever needs to be done there gets completed, I close that page using navcontrol.RemoveCurrentPage. So we go back to the first page, and on there, a statemachine in pg.Appear that sees that we've finished with page2, so then calls up page 3.

The problem is that I see the layout for page 1 flash up before page 3's layout is loaded. I use the same technique in B4A and it all happens quickly enough so that I don't see the layout of page 1, but not on ios.
I have set animation time to 0 and dumping to 1.

Any idea how I can resolve this without adopting a different method of driving which pages get loaded?
 

Arf

Well-Known Member
Licensed User
Longtime User
Is there perhaps an even which is similar to pg_Appear, but occurs before that the screen is updated with anything?
 
Upvote 0

Arf

Well-Known Member
Licensed User
Longtime User
Removing all views on pg_Disappear and re drawing the vews only when required sorted out this problem.
 
Upvote 0
Top