How do I display TableView in the same way as the screen transition destination of TableView in Swift?

Asked 2 years ago, Updated 2 years ago, 45 views

How can I make it into TableView where I can edit (add) the data like in the picture below, and TableView where I can edit and add the data at the screen transition destination?
As for the image, it looks like there is a file in the folder.
Do you use a database?
Enter a description of the image here

ios swift xcode

2022-09-30 16:56

1 Answers

Since the information provided in the question does not tell you exactly what the assumptions are, I will explain how to transition to the same screen when using Storyboard and UINavigationController.

All you have to do is create and push the same ViewController when you actually transition.

func moveToNext(){
    let id = "Folder"
    let vc = storyboard ?.instantiateViewControllerWithIdentifier(id) as!UIViewController
    navigationController?pushViewController(vc, animated:true)
}

id contains the Storyboard ID specified in the Storyboard.

Also, if you manage where each screen corresponds to in the data, you will be able to edit the data on any screen.


2022-09-30 16:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.