iOS Question how to refresh the view

kisoft

Well-Known Member
Licensed User
Longtime 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.
B4X:
    Activity.Finish
    StartActivity(Me)
 

hatzisn

Well-Known Member
Licensed User
Longtime 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.
B4X:
    Activity.Finish
    StartActivity(Me)

See the localizator example for iOS.
 
Upvote 0

kisoft

Well-Known Member
Licensed User
Longtime User
HI
or did you mean something like that?
B4X:
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
 
Upvote 0
Top