Hello guys,
I am new to swift and ios development. I have been given a project by the company that i work for and it includes a table view that should have invoices and their dates and amount and currency and it should have the feature whereby the user selects many rows and the go to the next screen the pay for the multiple selected invoices .
I have enabled multiple row selection but i don't know how to pass them and display them to the next screen .
Hi, I'm new too, so there can be a better way.
I'll create a class with the data you need to pass, than an Array of that class.
Than declare the array (with the same name) in the view you are going and use:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "name segue" { let controller = segue.destination as! namedestinationViewr controller.<arrayclass> = self.<arrayclass> } }
Hope to be useful!
Marco