iOS Question Splash Screen on iOS

susu

Well-Known Member
Licensed User
Longtime User
You don't need a library to show the splash screen. Add your logo/icon in Main module, it will be shown when your app start. Add a timer to call next screen after a time, remember to HideBackButton too. Done!
 
Upvote 0

Luiz Fernando Orlandini

Active Member
Licensed User
Longtime User
You don't need a library to show the splash screen. Add your logo/icon in Main module, it will be shown when your app start. Add a timer to call next screen after a time, remember to HideBackButton too. Done!
Cool... Thinking this afternoon, I did that, but I wasn't sure that is the best solution
 
Upvote 0

Francisco Picado

Member
Licensed User
Longtime User
HI everyone,

I've just started in B4i, i want to try for the begining. i was wondering if someone will help me to do the same. maybe it is a simple thing to do a splash screen, but as i said i am new in this. in B4A I used a library for this, but here i'm lost.

Thanks for any further help.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Example that uses CallSubPlus to show a splash screen for 5 seconds:
B4X:
Sub Process_Globals
   Public App As Application
   Public NavControl As NavigationController
   Private Page1 As Page
   Private csu As CallSubUtils
End Sub

Private Sub Application_Start (Nav As NavigationController)
   NavControl = Nav
   Nav.NavigationBarVisible = False
   Dim splashPage As Page
   splashPage.Initialize("")
   splashPage.RootPanel.Color = Colors.Red
   csu.Initialize
   csu.CallSubDelayedPlus(Me, "AfterSplash", 5000)
   NavControl.ShowPage(splashPage)
   Page1.Initialize("Page1")
   Page1.RootPanel.LoadLayout("1")
End Sub

Private Sub AfterSplash 'ignore
   NavControl.SetNavigationBarVisibleAnimated(True)
   NavControl.SetPagesStack(Array(Page1))
End Sub

https://www.b4x.com/android/forum/threads/callsubplus-callsub-with-explicit-delay.60877/#content
 
Upvote 0

Francisco Picado

Member
Licensed User
Longtime User
Thanks for the quick response and even more for the help, was what I was looking to start working on B4i . It worked perfectly. Again... Thanks
 
Upvote 0
Top