iPhone help with singleton class
问题 Greetings, I'm looking at Matt Gallagher's macro for creating singleton classes. http://cocoawithlove.com/2008/11/singletons-appdelegates-and-top-level.html Basically, I have an app with multiple views and I want to be able to access "global" data from each of these views using a singleton class. I basically have three strings I want to access in this class: NSString *uname, NSString *details and NSString *selectedDetails. Do I need to make three singleton classes with a static variable in