iOS Question TabViewController

trueboss323

Active Member
Licensed User
Longtime User
I'm trying to look for a simple example how I can use TVC. So far, I haven't been able to find any tutorial explaining this. The way I would like it to work is that I have multiple layout files (bil) and I want to add those as each pages of a tab.
 

trueboss323

Active Member
Licensed User
Longtime User
Hi Erel, I was finally able to figure it out using this code:

B4X:
tbc.Initialize("tbc")
App.KeyController = tbc

Page1.Initialize("Page1")
Page1.Title = "Test1"
Page1.RootPanel.LoadLayout("Main")
Page2.Initialize("Page2")

Page2.RootPanel.LoadLayout("2")
Page3.Initialize("Page3")


Page3.RootPanel.LoadLayout("3")

tbc.Pages = Array(Page1,Page2,Page3)

But now i got 2 problems. How can I add icons to the TabBar? and second, my navigation bar is gone now. Is there a way to show it on top?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top