how do I get my serialnumberLabel in scoop of the itemsviewController when its in a different file and where would I put it because I'm new to swift I know very little please help
CodePudding user response:
You should reload current tableView in completionHandle
closure and store text
in ItemsViewController
, then update serialNumberLabel.text
in tableView(_:cellForRowAt:)
.
CodePudding user response:
You need to change logic by steps:
Step1: Make a list common model for table view
Step2: when you modify item you set for model common in table view.
Step3: when you callback item you can only call reload table view.
All done.