I want to make a global array of custom objects that can be accessed throughout the app (AppDelegate, ViewController classes, TableViewController classes, etc). I have researched for a way to do it, but have not found an answer. I have tried making giving the array a public scope, but I get a complier warning which says Declaring public variable from internal class and when I try to access it in a different file, I get an error that says Use of unresolved identifier 'arrayObjectives'

How would I go about making that array globally accessible to all files in the application and where would I instantiate that array?

Related posts

Recent Viewed