iOS Question B4XPages - Back button

luke2012

Well-Known Member
Licensed User
Longtime User
Hi all,
referring to the attached screens (each screen is a new B4XPage opened by the previous page) I notice that on the iOS version (on the left) the word "Back" appears before the arrow while on the Android version only the arrow icon appears. About this, the strange thing is that only within the first opened page is "Home" instead of "Back".

Since the bar is localized in Italian, I would like to hide the word Back or replace it with the Italian translation but how to do it using B4XPages ? I see that the only method (B4XPages) that affects the top bar settings is .SetTitle (). Correct me if I'm wrong.

B4X - B4XPages code shared between B4A and B4i:
    Root = Root1
    Root.LoadLayout("home")
    B4XPages.SetTitle(Me, "Home")

    Root = Root1
    Root.LoadLayout("MainCats")
    B4XPages.SetTitle (Me, "Scegli una categoria...")

    Root = Root1
    Root.LoadLayout("subcatslist")
    B4XPages.SetTitle (Me, "Cosa cerchi ?")
 
    Root = Root1
    Root.LoadLayout("CardList")
    B4XPages.SetTitle (Me, "Le attività per te")

View attachment 121999
Schermata 2021-11-20 alle 19.08.31.png

1637431673131.png

1637431686042.png
 

hatzisn

Well-Known Member
Licensed User
Longtime User
I am not in front of my computer but I think in a previous message I have posted a test project which may cover your needs. Check the attached project in the following link:

 
Upvote 0

luke2012

Well-Known Member
Licensed User
Longtime User
It probably shows "Back" instead of the previous page title because the title is too long. Test it with a short title.

Hi Erel.
You are right. Now shows the previous page name.
Thanks to you and also other people thats reply to me :)
 
Upvote 0
Top