My problem is that I have 4 empty arrays:
var Names:[String] = []
var Amounts:[Int] = []
var Dates:[NSDate] = []
var Images:[UIImage] = []
Inside a class NewPersonViewController.
I also have a function inside NewPersonViewController:
func create(){
   Names.append(nameField.text)
   Amounts.append(amountField.text.toInt()!)
   Dates.append(dateToBePaid.date)
}
I call create() when a button is pressed. The function is just a button action, declared inside NewPersonViewController.
My problem: When I print out the arrays in another class (which is in another file) not including Images, I just get this:
[]
[]
[]
Yup, thats my output. Thank you in advance. Side note: I am new to swift :)
 
     
    