This code works on b4a:
but on B4i the following error is thrown:
setViewControllers:animated: called on <B4INavigationController 0x103815600> while an existing transition or presentation is occurring; the navigation stack will not be updated.
I added a delay:
back click with delay:
the error message is gone
back from submit:
Sub sign_up_back_Click
xui.MsgboxAsync("sign up cancelled","'No Touch' Orienteering")
B4XPages.ShowPageAndRemovePreviousPages("MainPage")
End Sub
but on B4i the following error is thrown:
setViewControllers:animated: called on <B4INavigationController 0x103815600> while an existing transition or presentation is occurring; the navigation stack will not be updated.
I added a delay:
back click with delay:
back click with delay:
Sub sign_up_back_Click
xui.MsgboxAsync("sign up cancelled","'No Touch' Orienteering")
#if b4i
Sleep(500) '390 is too short! 400 works
#End If
B4XPages.ShowPageAndRemovePreviousPages("MainPage")
End Sub
the error message is gone