Anyway to accomplish this:
Screen A Goes to Screen B
Screen B Goes to Screen C
Screen C Goes to Screen D
want back button on Screen D to go back to Screen A
Thanks
Anyway to accomplish this:
Screen A Goes to Screen B
Screen B Goes to Screen C
Screen C Goes to Screen D
want back button on Screen D to go back to Screen A
Thanks
Where does the back button go for B and C? Both back to A?
Presently no. They would go back to the previous screen. Just want D to go back to A.
Thanks.
You’ll need to use iOS Design Extensions, and put this code in the open even of Screen D:
Self.SetHidesBackButtonXC(True)
Then add a toolbar button with “Back to Screen A” (or whatever).
In the ToolbarButtonPressed event handler add your code to go back to Screen A
If ScreenA is the top level screen:
In the ToolbarButtonPressed event handler use
self.PopToRootViewControllerXC //Returns to the initial view in the view controller stack
Good Stuff thanks.
What if A is not the top level screen ?
If A is not the top level screen, I would inform screen C that it needs to close when D closes.
And inform B it needs to close when C closes.
There are various ways of doing this.
My favorite way would be using delegates.
My second favorite would be using JK_NotificationCenter from iOSKit.