iOS Question ToolBar Button don not appear?

Star-Dust

Expert
Licensed User
Longtime User
Surely I'm doing something simple. But it's my first App in B4i.

In the Debug the TollBar Buttons appear to me while in release they do not appear. Why?
Image-1.jpg image-2.jpeg
 
D

Deleted member 103

Guest
If the views are not included in a layout, then you have to set the view size and position in Sub Page1_Resize.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
This is all the code, I've just started
B4X:
Private Sub Application_Start (Nav As NavigationController)
    'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    NavControl.ShowPage(Page1)
    
    Page1.RootPanel.LoadLayout("Layout1")  
End Sub
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
In the Debug the TollBar Buttons appear to me while in release they do not appear. Why?
You mean that it shows in design mode and doesn't show while running, right?

Add:
B4X:
NavControl.ToolBarVisible = True
Make sure to add it after the call to ShowPage.
 
Upvote 0

BillMeyer

Well-Known Member
Licensed User
Longtime User
Don't worry Star Dust - it took me a while before figuring out the tricks and traps - but now I enjoy both B4A and B4i and am equally at home with them both.
 
Upvote 0
Top