There is one two-dimension array in my viewcontrollerOne
.
var estRent = [
("Weekly Rent:", a),
("Monthly Rent:", b),
("Yearly Rent:", c),
]
The first dimension is constants and the second one is variables. I declare it in an ButtonAction
function. I want to give the variables value and pass the whole array to another .swift
file when I click the button. I already know how to jump from the viewcontroller
via button.
But how to send the array to the .swift in the same time?