With Swift, I want to flip pages within multiple pages transitioned from TableView.

Asked 2 years ago, Updated 2 years ago, 94 views

In Swift3, if the screen transition destinations are distributed by TableView cells, I would like to swipe only the pages of the transition destination and return to the TableView page from each transition destination page from the NavigationController back button, but I don't know how to do it.

The initial screen is VC with TableView, and NavigationController is embedded.
From TableView cells to screen transitions to their respective destinations.

I'm studying Swift and I don't know if it's too difficult, but I'd appreciate it if you could let me know.
Thank you for your cooperation.

swift swift3

2022-09-30 17:46

1 Answers

Use UIPageViewController as the destination to transition from TableView.
If you push to the parent UINavigationController, you can use the Back button as usual.

transitionStyle is set to .pageCurl for page-turn animation.

ただし However, turning the page doesn't go well with the navigation bar.In the first place, I don't think it's very popular these days.

For instructions on how to use the UIPageViewController, please refer to the following pages:


2022-09-30 17:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.