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 resea
This is how I did it...
class MessageViewCell { struct MessageViewCellHeightCache { static var cache: [String:CGFloat] = Dictionary() } }
And I accessed it as follows:
MessageViewCell.MessageViewCellHeightCache.cache["first"] = 12.0