iOS Question Splash Screen on iOS

Discussion in 'iOS Questions' started by Luiz Fernando Orlandini, Feb 1, 2015.

  1. Luiz Fernando Orlandini

    Luiz Fernando Orlandini Active Member Licensed User

    How can I create a splash screen to my APPs? Do we have any library?
     
  2. susu

    susu Well-Known Member Licensed 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!
     
  3. Luiz Fernando Orlandini

    Luiz Fernando Orlandini Active Member Licensed User

    Cool... Thinking this afternoon, I did that, but I wasn't sure that is the best solution
     
  4. Francisco Picado

    Francisco Picado Member Licensed 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.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Example that uses CallSubPlus to show a splash screen for 5 seconds:
    Code:
    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
     
    Francisco Picado likes this.
  6. Francisco Picado

    Francisco Picado Member Licensed 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
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice