iOS Question Load b4xview with layout

wl

Well-Known Member
Licensed User
Longtime User
Hi all,

I have been struggling with multi page apps in iOS for quite a while. How do you have a separate page (class with design created by the designer) and display it (eg: a separate page for settings of the app).

Currently I'm trying to use the swipe card:

Each card is a separate b4xview. In the example the b4xviews are created dynamically.
How can I create a b4xview with layout in the designer and code in a separate class file ?

Not sure where exactly I need to search.

Thanks !
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4XView is simply a generic view type. You add views as regular and when you generate the global variables, you choose "As B4XView":

1643546776341.png


Note that custom views cannot be declared as B4XViews.
 
Upvote 0

wl

Well-Known Member
Licensed User
Longtime User
thanks,

but I am not sure how to load the layout, etc ..
any code example where a second bxview is loaded from a desig file and show from within the main page ?
 
Upvote 0
Top