Understanding How to Switch the Return Destination of the Segue

Asked 2 years ago, Updated 2 years ago, 63 views

There are screens A, B, and C, and I would like to use the segment on the Storyboard for screen transition.

The transition is
 ·Screen A→C
 ·Screen B→C
is available.

"At this time, when I press the ""back"" button on screen C, I would like to say ""back to A if you come from A"" or ""back to B if you come from B."""What should I do?

The Back button on screen C in Storyboard is tied to Exit, but you can only choose where to return to either screen A or screen B.

Also, I would like to know how to use segment instead of using presentViewController and dispatchViewControllerAnimated.

Thank you for your cooperation.

ios swift objective-c

2022-09-30 19:45

1 Answers

Enter a description of the image here

It's a little too rough, but can you understand the outline?


2022-09-30 19:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.