iOS Question Changing Tab Bar content

MitchBu

Well-Known Member
Licensed User
Longtime User
From the same source, I generate 4 different apps: Check Printer+, Check Printer Free, Check Writer Pro, Check Writer Free. Is it possible to change Tab Bar icons and tag in code ?

That would allow me to change the tab bar content according to the apps. For instance by adding the shopping cart icon in the free apps.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The best solution is to create layout files with only the tab buttons. This way you can load the correct one based on the app version.

You can also create them programmatically:
B4X:
Dim bb1, bb2, bb3 As BarButton
bb1.InitializeText("111", "aqwdsdasd")
bb2.InitializeSystem(bb2.ITEM_FLEXIBLE_SPACE, "")
bb3.InitializeText("as222", "asdasd")
Page1.ToolbarButtons = Array(bb1, bb2, bb3)
 
Upvote 0
Top