iOS Question how to refresh the view

Discussion in 'iOS Questions' started by kisoft, Oct 12, 2019 at 10:00 PM.

  1. kisoft

    kisoft Active Member Licensed User

    In the application I use many code modules (equivalent to android Activity).
    W I know that in ios it works completely different, on a hierarchy basis.
    How can I refresh?
    In androids, I do it like this.
    Code:
    Activity.Finish
        
    StartActivity(Me)
     
  2. Brandsum

    Brandsum Active Member Licensed User

    Do you want to redraw a single view or the complete page?
     
  3. hatzisn

    hatzisn Active Member Licensed User

    See the localizator example for iOS.
     
  4. kisoft

    kisoft Active Member Licensed User

    HI
    or did you mean something like that?
    Code:
    Private Sub Application_Start (Nav As NavigationController)
        NavControl = Nav
        Page1.Initialize(
    "Page1")
        Page1.Title = 
    "Page 1"
        ResetLayout
        NavControl.ShowPage(Page1)
    End Sub

    Private Sub ResetLayout
        
        Page1.RootPanel.RemoveAllViews
        Page1.RootPanel.LoadLayout(
    "1")
        
    End Sub

    Sub button1_Click ' reset
        ResetLayout
    End Sub
    I'd also like to reset all the variables from the Sub Process_Globals
     
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