iOS Question My project first screen is Black in debug mode.

roddy

Member
Licensed User
Longtime User
B4X:
NavControl = Nav
    Main.Initialize("Main")
    Main.Title = "VIP"
    Main.RootPanel.Color = Colors.White
    Main.RootPanel.LoadLayout("Main")
    NavControl.ShowPage(Main)
   
    Msgbox("111","")


My project first screen is Black in debug mode, but it's OK in "Build Release APP".

If this line of command (Msgbox("111","")) less,the screen is Black. Nothing display.
Add Msgbox("111","") ,the screen will display properly.

Is bug? Or I missed something?
 

klaus

Expert
Licensed User
Longtime User
You should not name the main page Main which is the name of the Main module.
If you replace Main by MainPage for the main Page it works !
 
Upvote 0
Top