3 ms·
any method that has 'shared' or 'current' in front. http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.htm
by ardit33 15y ago
any method that has 'shared' or 'current' in front.
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html http://developer.apple.com/library/ios/#documentation/uikit/...
It is almost everwhere.
[MyClass sharedMyclass] is the Objective-C equivalent of getInstance()
Also, singletons make good sense in mobile apps, as it is a very different type of a beast than a server side app.