When I display a message with
xui.MsgboxAsync("text", "title") and then immediately order to close the page with
B4XPages.ClosePage(Me) , on Android it works correctly, but on IOS it does not close the page, and when I click a button that I created and has the command to close the page, nothing happens.
If you try to click on the back button, before clicking on save the page closes correctly, the problem only happens when you display a message and close the page.
All logs appear. but it seems that the command to close the page is not executed.
Sub Class_Globals
Private Root As B4XView 'ignore
Private xui As XUI 'ignore
End Sub
Public Sub Initialize As Object
Return Me
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("Cadastro")
End Sub
Private Sub lb_salvar_Click
Log("lb_salvar_Click 1")
xui.MsgboxAsync("TESTE","ATENÇÃO")
B4XPages.ClosePage(Me)
Log("lb_salvar_Click 2")
End Sub
Private Sub lb_voltar_Click
Log("lb_voltar_Click 1")
B4XPages.ClosePage(Me)
Log("lb_voltar_Click 2")
End Sub