Marcos Alves Well-Known Member Licensed User Longtime User Feb 27, 2021 #1 Hello All, is there any way to remove the page title in IOS using B4XPages? Thanks!
LucaMs Expert Licensed User Longtime User Feb 27, 2021 #2 In B4A you can set the app to Full Screen -Show Title-false; B4i? Upvote 0
Marcos Alves Well-Known Member Licensed User Longtime User Feb 27, 2021 #3 LucaMs said: In B4A you can set the app to Full Screen -Show Title-false; B4i? Click to expand... Hello @LucaMs In B4A ok... there are many ways - in the Layout, in the activity, in the app attributes... In B4i no. I didn't find how to remove the page title. Upvote 0
LucaMs said: In B4A you can set the app to Full Screen -Show Title-false; B4i? Click to expand... Hello @LucaMs In B4A ok... there are many ways - in the Layout, in the activity, in the app attributes... In B4i no. I didn't find how to remove the page title.
Marcos Alves Well-Known Member Licensed User Longtime User Feb 27, 2021 #4 LucaMs said: In B4A you can set the app to Full Screen -Show Title-false; B4i? Click to expand... 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: Copy 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
LucaMs said: In B4A you can set the app to Full Screen -Show Title-false; B4i? Click to expand... 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: Copy 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.
LucaMs Expert Licensed User Longtime User Feb 27, 2021 #5 Don't worry, that sub is only inside your B4i project, you can do it so. [In fact, I who do not have B4i, had never seen it ?] Upvote 0
Don't worry, that sub is only inside your B4i project, you can do it so. [In fact, I who do not have B4i, had never seen it ?]
Marcos Alves Well-Known Member Licensed User Longtime User Feb 27, 2021 #6 LucaMs said: [In fact, I who do not have B4i, had never seen it ?] Click to expand... ? 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
LucaMs said: [In fact, I who do not have B4i, had never seen it ?] Click to expand... ? 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 ?
angel_ Well-Known Member Licensed User Longtime User Feb 27, 2021 #7 Try this: B4X: Copy 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
Try this: B4X: Copy 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
Marcos Alves Well-Known Member Licensed User Longtime User Feb 27, 2021 #8 angel_ said: Try this: B4X: Copy 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 Click to expand... 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
angel_ said: Try this: B4X: Copy 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 Click to expand... 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_
angel_ Well-Known Member Licensed User Longtime User Feb 27, 2021 #9 I think it works for me, try the attachment Attachments text_titulo.zip text_titulo.zip 2.7 KB · Views: 532 Upvote 0
Marcos Alves Well-Known Member Licensed User Longtime User Feb 27, 2021 #10 Marcos Alves said: 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_ Click to expand... 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
Marcos Alves said: 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_ Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2021 #11 This is the correct solution: Code: Copy NavControl.NavigationBarVisible = False Upvote 0
Marcos Alves Well-Known Member Licensed User Longtime User Feb 28, 2021 #12 Erel said: This is the correct solution: Code: Copy NavControl.NavigationBarVisible = False Click to expand... Thanks @Erel ? Upvote 0
Erel said: This is the correct solution: Code: Copy NavControl.NavigationBarVisible = False Click to expand... Thanks @Erel ?