iOS Question Application_Start

netkomm

Active Member
Licensed User
Longtime User
Hi Erel,

During the event Application_Start I am trying to set up the objects that are in the layout I am loading so that they can appear in the correct position on the screen.

Example: a splash screen.

I placed an Image View on the layout and set the visibility to false. If I use the following code

B4X:
splashScreen.Top = 0
splashScreen.Left = 0
splashScreen.Width = 100%x
splashScreen.Height = 100%y
splashScreen.Visible = True

the only thing that happens is that the visibility is toggled on but all the rest remain unchanged.

If I place the same code on the Application_Active event, instead, it works without a problem.

Is it supposed to work this way?
 

netkomm

Active Member
Licensed User
Longtime User
I am trying to show an intro screen using an Image View.

The problem is that during the Application_Start event I can only toggle its visibility but not move the object on the screen.

I also moved the code in an external Sub but as long as the code is invoked during the Application_Start event I can't seem to be able to resize the picture.
 
Upvote 0

netkomm

Active Member
Licensed User
Longtime User
Hi Erel,

I solved the issue by changing how the view handles the Resize Event of the view. Thanks.
 
Upvote 0
Top