The first method is to use delegate. After passing the value, call the tableView reloadData method on the first-level page. The passed value can be saved locally or temporarily saved in the first-level page variable. The second method is BLOCK, on the second-level interface. Define Block and then call it. When Block defines the function block in the first-level page, add [self.tableView reloadData] to the function after passing the value
Third way: Using MVVM, the data is stored in the viewModel, and the view binds the data in the viewModel. When the data changes, the view layer receives a notification, and then the interface can be updated. Binding can be implemented using ReactiveCocoa or RxSwift.
The first method is to use delegate. After passing the value, call the tableView reloadData method on the first-level page. The passed value can be saved locally or temporarily saved in the first-level page variable.
The second method is BLOCK, on the second-level interface. Define Block and then call it. When Block defines the function block in the first-level page, add [self.tableView reloadData] to the function after passing the value
You can use Delegate to transfer values between pages
Define a Delegate method and call TableView.reload() in it
Third way: Using MVVM, the data is stored in the viewModel, and the view binds the data in the viewModel. When the data changes, the view layer receives a notification, and then the interface can be updated. Binding can be implemented using ReactiveCocoa or RxSwift.