iOS Question Toolbar visible only on one side

so27

Active Member
Licensed User
Longtime User
Hello everybody,

I only want the toolbar to be visible on Page2. That works. If I tap on the back button in the upper left corner, I see an empty toolbar on Page1.

B4X:
'Code module

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public App As Application
    Public NavControl As NavigationController
    Private Page2 As Page

End Sub

Public Sub Show
    
    If Page2.IsInitialized = False Then
        Page2.Initialize("pg")
        Page2.RootPanel.LoadLayout("Page2")
        Page2.Title = "HbA1c in mg/dl"
        Page2.Prompt = Main.GespeicherterName
        Main.NavControl.ToolBarVisible = True

    End If
    Main.NavControl.ShowPage(Page2)
End Sub

What do I have to do to hide the toolbar when tapping the Back button on Page1 again?
 
D

Deleted member 103

Guest
Have you already tried this:
B4X:
Private Sub Page1_Appear
    NavControl.NavigationBarVisible = False
End Sub
 
Upvote 0

so27

Active Member
Licensed User
Longtime User
Danke mit dem Code geht es:
B4X:
NavControl.ToolBarVisible = False
 
Upvote 0
Top