iOS Question NavControl.Toolbar not showing

Sales Bennett

Member
Licensed User
Longtime User
B4i 2.31

Up until this week I could go:

NavControl = Nav
NavControl.ToolBarVisible = True
Page1.Initialize("Page1")
Page1.Title = "Page 1"
NavControl.ShowPage(Page1)
Page1.RootPanel.LoadLayout("1")

Now I have to go:

NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
NavControl.ShowPage(Page1)
NavControl.ToolBarVisible = True
Page1.RootPanel.LoadLayout("1")

i.e. set toolbar visibility after Showing Page (otherwise the toolbar doesn’t show),- this seems reasonable but, what changed? How did it work before?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm unable to reproduce it. I've tested it with this code and the tool bar is visible:
B4X:
Private Sub Application_Start (Nav As NavigationController)
   NavControl = Nav
   NavControl.ToolBarVisible = True
   Page1.Initialize("Page1")
   Page1.Title = "Page 1"
   NavControl.ShowPage(Page1)
   Page1.RootPanel.LoadLayout("1")
End Sub

Did you test it in debug mode?
Are you using a local builder?
 
Upvote 0

Sales Bennett

Member
Licensed User
Longtime User
I have tested it now in debug mode and it works OK. However the issue remains in release mode (Tools/Build Server/Build Release App/B4i-Bridge/Install/Open). I am using the Hosted Builder.
 
Upvote 0
Top