iphone - Using Singleton Class -


i have made use of delegates in past share information object (with it's associated properties) across different classes, i'm planning new app , thinking of using singleton class this.

is mandatory protocol use delegates share information between classes, or can employ singleton class ?

looking forward views or advise on topic.

there lot of ways share information between controllers. solely depends upon design opt choose. singletons used store information globally used whole app anywhere. example, store game's score , stuff. delegate used communicate between limited number of controllers. btw can broadcast data "listening" controllers via notifications. again depends upon design should choose.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -