Russell Broadbent

Yorkshire based web developer

iOS4 – Static Classes

Found a very useful article relating to the use of static classes, here.

The idea being that you should store your data objects in a static class that can then be referenced from anywhere in the App

To call the class use the following:

SingletonClass* sharedSingleton = [SingletonClass sharedInstance];
[sharedSingleton callAMethod];

Comments are closed.