Hi all,
I have a question about structure. I have a backup button in my settingsVC. I have created an NSObject file with the functions that I need. They put CoreData info into an array and iterate what I want from the array into the variable 'backUpFile'.
I've accessed the NSObject file from the button in the settingsVC, and it works. My question is, is this an acceptable way to go about it? Does the test object still reside in memory when the operation is done? Do I need to clear it or do some kind of clean up after getting my result?
Cheers for any responses.
@IBAction func backUpTapped(_ sender: Any) {
let test = BackUp()
test.getRecords()
test.getInfo()
let file = test.backUpFile
print(file)
}