iOS Question B4X Pages - Page Title

Marcos Alves

Well-Known Member
Licensed User
Longtime User
Hello All,

is there any way to remove the page title in IOS using B4XPages?

Thanks!
 

Marcos Alves

Well-Known Member
Licensed User
Longtime User
In B4A you can set the app to Full Screen -Show Title-false; B4i?
Hello,

when answering your reply I was searching options in the code and found something here... In the Main module , when using B4XPages, there is the code:

B4X:
Private Sub Application_Start (Nav As NavigationController)
   
    NavControl = Nav
    Dim PagesManager As B4XPagesManager
    PagesManager.Initialize(NavControl)
   
    NavControl.NavigationBarVisible = False <---- I ADDED THIS LINE
   
End Sub

It looks that the title is created by the navigationController object and thus the only way to remove it is referencing directly this. I'm not sure that this is a good behavior as @Erel said someplace that when using B4XPages we need to maintain the Main module untouched in favor of multi platform compatibility, but that's what I found to remove it.
If anybody knows some different / more recommendable method, please... tell me.
 
Upvote 0

Marcos Alves

Well-Known Member
Licensed User
Longtime User
[In fact, I who do not have B4i, had never seen it ?]
? I must to confess that I prefer Android and B4A 1000 times either. But my clients are the Kings ( ? ) and during the last years they are requesting to us IOS apps. Ios is horrible to test, to compile, to publish, to use... but, they pay by IOS apps then, what to do ?
 
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
Try this:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
    ChangeTitle
End Sub

Private Sub ChangeTitle
    Sleep(0)
    B4XPages.GetNativeParent(Me).Title = ""
End Sub
 
Upvote 0

Marcos Alves

Well-Known Member
Licensed User
Longtime User

Hello @angel_ . I tested this way but didn't work. I think that the best way to remove the title is what I found in the previous post... If somebody knows other method, please tell us...

Thanks @angel_
 
Upvote 0

Marcos Alves

Well-Known Member
Licensed User
Longtime User
Hello @angel_ . I tested this way but didn't work. I think that the best way to remove the title is what I found in the previous post... If somebody knows other method, please tell us...

Thanks @angel_
Ok... The title is blank, but the Title bar is still there. I want to remove the title, including the space used on screen for it. For now, the unique solution is to call the navigationController object.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…